Skip to content

Commit

Permalink
add reobf task in gradle to reobf both the jar and api
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Jul 24, 2021
1 parent 5188637 commit 0cf9c46
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.gradle
Expand Up @@ -34,8 +34,10 @@ if (build_number == null) {
}

String semver = "${version_major}.${version_minor}.${version_patch}"
version = "${semver}.${build_number}"
group = 'mezz.jei' // http://maven.apache.org/guides/mini/guide-naming-conventions.html

// these two are required for the java plugin to generate jar files with a version
String version = "${semver}.${build_number}"
String group = 'mezz.jei' // http://maven.apache.org/guides/mini/guide-naming-conventions.html

sourceSets {
api
Expand Down Expand Up @@ -216,6 +218,11 @@ reobf {
jar { classpath.from(sourceSets.main.compileClasspath) }
}

task reobf {
dependsOn reobfJar
dependsOn reobfApiJar
}

task uploadJars(dependsOn: build) {
description = 'Uploads JARs'
if (project.hasProperty('local_maven')) {
Expand Down

0 comments on commit 0cf9c46

Please sign in to comment.