mirror of
https://github.com/revanced/smali.git
synced 2025-05-03 16:14:29 +02:00
Clean up the jar naming
The previous naming was interfering with 'gr install' installing the artifacts locally.
This commit is contained in:
parent
4b337cc04d
commit
6429b3daa9
@ -51,16 +51,13 @@ dependencies {
|
|||||||
processResources.inputs.property('version', version)
|
processResources.inputs.property('version', version)
|
||||||
processResources.expand('version': version)
|
processResources.expand('version': version)
|
||||||
|
|
||||||
// This is the jar that gets uploaded to maven
|
|
||||||
jar {
|
|
||||||
baseName = 'maven'
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build a separate jar that contains all dependencies
|
// Build a separate jar that contains all dependencies
|
||||||
task fatJar(type: Jar) {
|
task fatJar(type: Jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
|
||||||
|
classifier = 'fat'
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Main-Class': 'org.jf.baksmali.main')
|
attributes('Main-Class': 'org.jf.baksmali.main')
|
||||||
}
|
}
|
||||||
|
17
build.gradle
17
build.gradle
@ -33,8 +33,6 @@ apply plugin: 'idea'
|
|||||||
|
|
||||||
version = '2.1.2'
|
version = '2.1.2'
|
||||||
|
|
||||||
def jarVersion = version
|
|
||||||
|
|
||||||
if (!('release' in gradle.startParameter.taskNames)) {
|
if (!('release' in gradle.startParameter.taskNames)) {
|
||||||
def versionSuffix
|
def versionSuffix
|
||||||
try {
|
try {
|
||||||
@ -51,12 +49,7 @@ if (!('release' in gradle.startParameter.taskNames)) {
|
|||||||
versionSuffix = 'dev'
|
versionSuffix = 'dev'
|
||||||
}
|
}
|
||||||
|
|
||||||
def baseVersion = version
|
version += "-${versionSuffix}"
|
||||||
version = baseVersion + '-' + versionSuffix
|
|
||||||
|
|
||||||
// use something like module-1.2.3-dev.jar for the jar name, rather than the full
|
|
||||||
// module-1.2.3-001afe02-dirty.jar
|
|
||||||
jarVersion = baseVersion + '-dev'
|
|
||||||
} else {
|
} else {
|
||||||
if (System.env.JDK6_HOME == null && !JavaVersion.current().isJava6()) {
|
if (System.env.JDK6_HOME == null && !JavaVersion.current().isJava6()) {
|
||||||
throw new InvalidUserDataException("bzzzzzzzt. Release builds must be performed with java 6. " +
|
throw new InvalidUserDataException("bzzzzzzzt. Release builds must be performed with java 6. " +
|
||||||
@ -69,6 +62,10 @@ if (!('release' in gradle.startParameter.taskNames)) {
|
|||||||
task release() {
|
task release() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task(install) << {
|
||||||
|
println "Installing version: ${version}"
|
||||||
|
}
|
||||||
|
|
||||||
// The projects that get pushed to maven
|
// The projects that get pushed to maven
|
||||||
def maven_release_projects = ['smali', 'baksmali', 'dexlib2', 'util']
|
def maven_release_projects = ['smali', 'baksmali', 'dexlib2', 'util']
|
||||||
|
|
||||||
@ -114,10 +111,6 @@ subprojects {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
|
||||||
version = jarVersion
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
@ -92,16 +92,13 @@ dependencies {
|
|||||||
processResources.inputs.property('version', version)
|
processResources.inputs.property('version', version)
|
||||||
processResources.expand('version': version)
|
processResources.expand('version': version)
|
||||||
|
|
||||||
// This is the jar that gets uploaded to maven
|
|
||||||
jar {
|
|
||||||
baseName = 'maven'
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build a separate jar that contains all dependencies
|
// Build a separate jar that contains all dependencies
|
||||||
task fatJar(type: Jar, dependsOn: jar) {
|
task fatJar(type: Jar, dependsOn: jar) {
|
||||||
from sourceSets.main.output
|
from sourceSets.main.output
|
||||||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
|
||||||
|
classifier = 'fat'
|
||||||
|
|
||||||
manifest {
|
manifest {
|
||||||
attributes('Main-Class': 'org.jf.smali.main')
|
attributes('Main-Class': 'org.jf.smali.main')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user