Skip to content

Commit 93a5bd0

Browse files
committed
bump version,remove maven-publish
1 parent 3460075 commit 93a5bd0

File tree

2 files changed

+5
-21
lines changed

2 files changed

+5
-21
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pipeline {
66
jdk "jdk17"
77
}
88
steps {
9-
sh './gradlew publish'
9+
sh './gradlew reobfJar sourcesJar javadocJar'
1010
}
1111
}
1212
}

build.gradle

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import java.nio.charset.StandardCharsets
22

33
plugins {
44
id 'java-library'
5-
id 'maven-publish'
65
id 'io.papermc.paperweight.userdev' version '1.3.8'
76
id 'xyz.jpenilla.run-paper' version '1.0.6' // Adds runServer and runMojangMappedServer tasks for testing
87
}
@@ -12,7 +11,7 @@ ext.pluginNameUpper = "NyaaCore"
1211
ext.pluginNameLower = ext.pluginNameUpper.toLowerCase()
1312

1413
ext.majorVersion = 9
15-
ext.minorVersion = 1
14+
ext.minorVersion = 2
1615
ext.minecraftVersion = "1.19.2"
1716

1817

@@ -23,7 +22,7 @@ ext.jdDirectory = System.env.JAVADOCS_DIR == null ? null : "$System.env.JAVADOCS
2322

2423
// Version used for distribution. Different from maven repo
2524
group = "cat.nyaa"
26-
archivesBaseName = "${pluginNameUpper}-mc$minecraftVersion"
25+
//archivesBaseName = "${pluginNameUpper}-mc$minecraftVersion"
2726
version = "$majorVersion.$minorVersion.$buildNumber".toString()
2827

2928
// extra compile warnings
@@ -100,23 +99,8 @@ processTestResources {
10099
// rename { 'spigot-deobf.csrg' }
101100
// }
102101
}
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"))
120104
}
121105

122106
javadoc {

0 commit comments

Comments
 (0)