1
1
plugins {
2
2
id(" io.github.gradlebom.generator-plugin" ) version " 1.0.0.Final"
3
- id(" net.kyori.indra" )
4
- id(" net.kyori.indra.publishing" )
3
+ id(" io.github.gradle-nexus.publish-plugin" ) version " 2.0.0"
5
4
signing
6
5
}
7
6
@@ -19,28 +18,55 @@ bomGenerator {
19
18
includeDependency(" net.onelitefeather.microtus.testing" , " testing" , version)
20
19
}
21
20
22
- indra {
23
- github(" OneLiteFeatherNET" , " Microtus" ) {
24
- ci(true )
25
- publishing(false )
21
+ signing {
22
+ if (! project.hasProperty(" skip.signing" ) && ! version.toString().endsWith(" -SNAPSHOT" )) {
23
+ val signingKey: String? by project
24
+ val signingPassword: String? by project
25
+ useInMemoryPgpKeys(signingKey, signingPassword)
26
+ signing.isRequired
27
+ sign(publishing.publications)
26
28
}
27
- mitLicense()
28
- signWithKeyFromPrefixedProperties(" onelitefeather" )
29
- description = " Bill of materials for Microtus projects."
30
- configurePublications {
31
- pom {
32
- developers {
33
- developer {
34
- id.set(" themeinerlp" )
35
- name.set(" Phillipp Glanz" )
36
- email.set(" p.glanz@madfix.me" )
29
+ }
30
+ publishing {
31
+ publications {
32
+ create<MavenPublication >(" maven" ) {
33
+
34
+ pom {
35
+ name.set(project.name)
36
+ description.set(" Bill of materials for Microtus projects." )
37
+ url.set(" https://github.com/OneLiteFeatherNET/microtus" )
38
+
39
+ licenses {
40
+ license {
41
+ name.set(" The MIT License" )
42
+ url.set(" https://opensource.org/licenses/MIT" )
43
+ distribution.set(" repo" )
44
+ }
45
+ }
46
+ developers {
47
+ developer {
48
+ id.set(" themeinerlp" )
49
+ name.set(" Phillipp Glanz" )
50
+ email.set(" p.glanz@madfix.me" )
51
+ }
52
+ developer {
53
+ id.set(" theEvilReaper" )
54
+ name.set(" Steffen Wonning" )
55
+ email.set(" steffenwx@gmail.com" )
56
+ }
37
57
}
38
- developer {
39
- id.set(" theEvilReaper" )
40
- name.set(" Steffen Wonning" )
41
- email.set(" steffenwx@gmail.com" )
58
+ scm {
59
+ url.set(" https://github.com/OneLiteFeatherNET/microtus" )
60
+ connection.set(" scm:git:https://github.com/OneLiteFeatherNET/microtus.git" )
61
+ developerConnection.set(" scm:git:git@github.com:OneLiteFeatherNET/microtus.git" )
62
+ tag.set(" ${project.version} " )
63
+ }
64
+
65
+ issueManagement{
66
+ system.set(" GitHub" )
67
+ url.set(" https://github.com/OneLiteFeatherNET/microtus/issues" )
42
68
}
43
69
}
44
70
}
45
71
}
46
- }
72
+ }
0 commit comments