Skip to content

Commit ac0cdc7

Browse files
try to solve weird desobf issue
1 parent 0c87ea2 commit ac0cdc7

File tree

1 file changed

+2
-54
lines changed

1 file changed

+2
-54
lines changed

build.gradle

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -225,64 +225,12 @@ publishing {
225225
publications {
226226
mavenJava(MavenPublication) {
227227
from components.java
228-
}
229-
}
230-
}
231-
232-
//the jreleaser doesn't work
233-
//todo find why and fix it
234-
jreleaser {
235-
project {
236-
name = 'FormicAPI'
237-
version = mod_version
238-
description = 'A Minecraft modding API for the Engineer Colony'
239-
authors = ['RealAntEngineer']
240-
license = 'MIT'
241-
// Project homepage
242-
java {
243-
version = '17'
244-
}
245-
website = 'https://github.com/RealAntEngineer/FormicAPI'
246-
}
247-
248-
deploy {
249-
maven {
250-
mavenCentral {
251-
main {
252-
active = 'ALWAYS'
253-
url = 'https://s01.oss.sonatype.org/services/staging/deploy/maven2/' // new token-based endpoint
254-
255-
username = System.getProperty('SONATYPE_USERNAME')
256-
password = System.getProperty('SONATYPE_TOKEN')
257-
}
258-
}
259-
}
260-
}
261-
signing {
262-
//active = 'ALWAYS'
263-
//armored = true
264-
//mode = 'MEMORY'
265-
secretKey = System.getProperty('SONATYPE_USERNAME')
266-
passphrase = System.getProperty('SONATYPE_TOKEN')
267-
}
268-
269-
distributions {
270-
main {
271-
artifact {
272-
path = "$buildDir/libs/formic-api-${minecraft_version}.jar"
228+
artifact(tasks.jar) {
229+
classifier = "all"
273230
}
274-
extraProperties.put('groupId', 'io.github.realantengineer.formicapi')
275-
extraProperties.put('artifactId', "formic-api-${minecraft_version}")
276-
extraProperties.put('version', mod_version)
277231
}
278232
}
279-
/*release {
280-
github {
281-
active = 'NEVER'
282-
}
283-
}*/
284233
}
285-
286234
tasks.withType(JavaCompile).configureEach {
287235
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
288236
}

0 commit comments

Comments
 (0)