File tree Expand file tree Collapse file tree 2 files changed +5
-21
lines changed Expand file tree Collapse file tree 2 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pipeline {
6
6
jdk " jdk17"
7
7
}
8
8
steps {
9
- sh ' ./gradlew publish '
9
+ sh ' ./gradlew reobfJar sourcesJar javadocJar '
10
10
}
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import java.nio.charset.StandardCharsets
2
2
3
3
plugins {
4
4
id ' java-library'
5
- id ' maven-publish'
6
5
id ' io.papermc.paperweight.userdev' version ' 1.3.8'
7
6
id ' xyz.jpenilla.run-paper' version ' 1.0.6' // Adds runServer and runMojangMappedServer tasks for testing
8
7
}
@@ -12,7 +11,7 @@ ext.pluginNameUpper = "NyaaCore"
12
11
ext. pluginNameLower = ext. pluginNameUpper. toLowerCase()
13
12
14
13
ext. majorVersion = 9
15
- ext. minorVersion = 1
14
+ ext. minorVersion = 2
16
15
ext. minecraftVersion = " 1.19.2"
17
16
18
17
@@ -23,7 +22,7 @@ ext.jdDirectory = System.env.JAVADOCS_DIR == null ? null : "$System.env.JAVADOCS
23
22
24
23
// Version used for distribution. Different from maven repo
25
24
group = " cat.nyaa"
26
- archivesBaseName = " ${ pluginNameUpper} -mc$minecraftVersion "
25
+ // archivesBaseName = "${pluginNameUpper}-mc$minecraftVersion"
27
26
version = " $majorVersion . $minorVersion . $buildNumber " . toString()
28
27
29
28
// extra compile warnings
@@ -100,23 +99,8 @@ processTestResources {
100
99
// rename { 'spigot-deobf.csrg' }
101
100
// }
102
101
}
103
- publishing {
104
- publications {
105
- mavenJava(MavenPublication ) {
106
- group project. group
107
- artifactId pluginNameLower
108
- version " $majorVersion . $minorVersion -SNAPSHOT"
109
-
110
- from components. java
111
- artifact sourcesJar
112
- artifact javadocJar
113
- }
114
- }
115
- repositories {
116
- maven {
117
- url mavenDirectory
118
- }
119
- }
102
+ reobfJar {
103
+ outputJar. set(layout. buildDirectory. file(" libs/${ pluginNameUpper} -mc${ minecraftVersion} -${ project.version} .jar" ))
120
104
}
121
105
122
106
javadoc {
You can’t perform that action at this time.
0 commit comments