1
+ import net.kyori.indra.Indra
2
+
3
+ buildscript {
4
+ ext {
5
+ indraVersion = " 1.2.0"
6
+ }
7
+ }
8
+
1
9
plugins {
2
- id ' java-library'
3
- id ' maven-publish'
4
- id ' signing'
5
- id ' net.kyori.invent' version ' 1.0.4'
6
- id ' net.kyori.invent-javadoc-jar' version ' 1.0.4'
7
- id ' net.kyori.invent-sonatype-repository' version ' 1.0.4'
8
- id ' net.kyori.invent-sources-jar' version ' 1.0.4'
9
- id ' net.minecrell.licenser' version ' 0.4.1'
10
+ id ' net.kyori.indra' version " $indraVersion "
11
+ id ' net.kyori.indra.publishing.sonatype' version " $indraVersion "
12
+ id ' net.kyori.indra.license-header' version " $indraVersion "
10
13
}
11
14
12
15
group ' net.kyori'
13
16
version ' 4.0.0-SNAPSHOT'
14
17
description ' A pagination feature for Adventure.'
15
18
16
- tasks. withType(JavaCompile ) {
17
- options. compilerArgs + = [' -Xlint:all' ]
18
- }
19
-
20
- license {
21
- header rootProject. file(' header.txt' )
22
- include ' **/*.java'
23
- newLine false
24
- }
25
-
26
19
repositories {
27
20
mavenLocal()
28
21
mavenCentral()
29
- maven {
30
- url ' https://oss.sonatype.org/content/groups/public/'
31
- }
22
+ sonatypeSnapshots()
32
23
}
33
24
34
25
dependencies {
@@ -46,68 +37,43 @@ jar {
46
37
)
47
38
}
48
39
49
- inventSonatypeRepository. enabled = System . getenv(' GITHUB_ACTIONS' ) == null || project. version. endsWith(' -SNAPSHOT' )
50
-
51
- publishing {
52
- publications {
53
- maven(MavenPublication ) {
54
- from components. java
55
-
56
- artifact javadocJar
57
- artifact sourcesJar
58
-
59
- pom {
60
- name = project. name
61
- url = ' https://github.com/KyoriPowered/adventure-text-feature-pagination'
62
- description = project. description
63
-
64
- developers {
65
- developer {
66
- id = ' kashike'
67
- timezone = ' America/Vancouver'
68
- }
69
-
70
- developer {
71
- id = ' lucko'
72
- name = ' Luck'
73
- url = ' https://lucko.me'
74
-
75
- }
40
+ indra {
41
+ javaVersions {
42
+ testWith(8 , 11 , 15 )
43
+ }
76
44
77
- developer {
78
- id = ' zml'
79
- name = ' zml'
80
- timezone = ' America/Vancouver'
81
- }
45
+ github(" KyoriPowered" , " adventure-text-feature-pagination" )
46
+ mitLicense()
82
47
83
- developer {
84
- id = ' Electroid'
85
- }
48
+ configurePublications {
49
+ pom {
50
+ developers {
51
+ developer {
52
+ id = ' kashike'
53
+ timezone = ' America/Vancouver'
86
54
}
87
55
88
- issueManagement {
89
- system = ' GitHub Issues'
90
- url = ' https://github.com/KyoriPowered/adventure-text-feature-pagination/issues'
56
+ developer {
57
+ id = ' lucko'
58
+ name = ' Luck'
59
+ url = ' https://lucko.me'
60
+
91
61
}
92
62
93
- licenses {
94
- license {
95
- name = ' MIT License'
96
- url = ' https://opensource.org/licenses/MIT'
97
- }
63
+ developer {
64
+ id = ' zml'
65
+ name = ' zml'
66
+ timezone = ' America/Vancouver'
98
67
}
99
68
100
- scm {
101
- connection
= ' scm:[email protected] :KyoriPowered/adventure-text-feature-pagination.git'
102
- developerConnection
= ' scm:[email protected] :KyoriPowered/adventure-text-feature-pagination.git'
103
- url = ' https://github.com/KyoriPowered/adventure-text-feature-pagination/'
69
+ developer {
70
+ id = ' Electroid'
104
71
}
105
72
}
106
73
}
107
74
}
108
75
}
109
76
110
- signing {
111
- required { project. hasProperty(' signing.keyId' ) && gradle. taskGraph. hasTask(' :publish' ) && ! project. version. endsWith(' -SNAPSHOT' ) }
112
- sign publishing. publications. maven
77
+ tasks. withType(Sign ) {
78
+ onlyIf { project. hasProperty(' signing.keyId' ) && Indra . isRelease(project) }
113
79
}
0 commit comments