-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
88 lines (76 loc) · 2.26 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
`java-gradle-plugin`
kotlin("jvm") version "1.8.0"
id("com.vanniktech.maven.publish") version "0.24.0"
}
group = "org.noear"
version = "0.0.2"
description = "Solon Gradle Plugin"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation(gradleApi())
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("gradle-plugin"))
implementation("org.ow2.asm:asm:9.5")
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
gradlePlugin {
plugins {
create("SolonPlugin") {
id = "org.noear.solon"
displayName = "Solon"
description = project.description
implementationClass = "org.noear.solon.gradle.plugin.SolonPlugin"
}
}
}
mavenPublishing {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.DEFAULT)
// or when publishing to https://s01.oss.sonatype.org
// publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
coordinates(project.group.toString(), "solon-gradle-plugin", project.version.toString())
pom {
name.set("Solon Gradle Plugin")
description.set(project.description)
inceptionYear.set("2023")
url.set("https://gitee.com/noear/solon")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("noear")
name.set("noear")
url.set("https://gitee.com/noear")
}
}
scm {
url.set("https://gitee.com/noear/solon")
connection.set("scm:git:[email protected]:noear/solon.git")
developerConnection.set("scm:git:ssh://[email protected]:noear/solon.git")
}
}
}