-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
118 lines (97 loc) · 2.73 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@file:OptIn(ExperimentalKotlinGradlePluginApi::class)
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
plugins {
kotlin("multiplatform") version "2.0.20"
java
id("com.vanniktech.maven.publish") version "0.29.0"
id("maven-publish")
signing
}
group = "io.github.dingyi222666"
version = "1.0.3"
kotlin {
jvm {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
}
withJava()
}
macosX64()
macosArm64()
linuxArm64()
linuxX64()
mingwX64()
js {
browser {
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport {
enabled.set(true)
}
}
}
}
}
sourceSets {
commonMain {
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("test"))
}
}
commonTest {
dependencies {
implementation(kotlin("test-annotations-common"))
}
}
jvmTest {
dependencies {
implementation(kotlin("test-junit"))
}
// add java to src
}
jsTest {
dependencies {
implementation(kotlin("test-js"))
}
}
nativeTest {
dependencies {
// implementation(kotlin("test-native"))
}
}
}
jvmToolchain(11)
}
mavenPublishing {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01)
signAllPublications()
coordinates("io.github.dingyi222666", "luaparser", "1.0.3")
pom {
name.set("luaparser")
description.set("A Lua 5.3 Lexer & Parser written in pure Kotlin.")
inceptionYear.set("2023")
url.set("https://github.com/dingyi222666/luaparser")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("dingyi222666")
name.set("dingyi222666")
url.set("https://github.com/dingyi222666")
}
}
scm {
url.set("https://github.com/dingyi222666/lua-parser")
connection.set("scm:git:git://github.com/dingyi222666/lua-parser.git")
developerConnection.set("scm:git:ssh://[email protected]/dingyi222666/lua-parser.git")
}
}
}