mirror of
https://github.com/revanced/smali.git
synced 2025-05-31 04:40:12 +02:00
Generate fat jars for smali and baksmali
This commit is contained in:
parent
7d1263a4ff
commit
5cf9fe7c0a
@ -7,3 +7,16 @@ dependencies {
|
|||||||
|
|
||||||
processResources.inputs.properties('version': { -> version})
|
processResources.inputs.properties('version': { -> version})
|
||||||
processResources.expand('version': { -> version})
|
processResources.expand('version': { -> version})
|
||||||
|
|
||||||
|
// We have to do this in taskGraph.whenReady, so that we use the correct
|
||||||
|
// version to resolve the project dependencies
|
||||||
|
gradle.taskGraph.whenReady {
|
||||||
|
// build a jar containing all dependencies
|
||||||
|
jar {
|
||||||
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
|
||||||
|
manifest {
|
||||||
|
attributes("Main-Class": "org.jf.baksmali.main")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
13
build.gradle
13
build.gradle
@ -1,7 +1,8 @@
|
|||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
version = "1.3.4"
|
ext.baseVersion = '1.3.4'
|
||||||
|
ext.jarVersion = baseVersion
|
||||||
|
|
||||||
// For non-release builds, we want to append the commit and
|
// For non-release builds, we want to append the commit and
|
||||||
// dirty status to the version
|
// dirty status to the version
|
||||||
@ -22,7 +23,15 @@ subprojects {
|
|||||||
versionSuffix = 'dev'
|
versionSuffix = 'dev'
|
||||||
}
|
}
|
||||||
|
|
||||||
version += '-' + versionSuffix
|
version = baseVersion + '-' + versionSuffix
|
||||||
|
|
||||||
|
// use <version>-dev for the jar name, rather than the
|
||||||
|
// full commit+dirty string
|
||||||
|
jarVersion = baseVersion + '-dev'
|
||||||
|
}
|
||||||
|
|
||||||
|
jar {
|
||||||
|
version = jarVersion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,3 +80,16 @@ compileTestJava.dependsOn generateTestAntlrSource
|
|||||||
|
|
||||||
processResources.inputs.properties('version': { -> version})
|
processResources.inputs.properties('version': { -> version})
|
||||||
processResources.expand('version': { -> version})
|
processResources.expand('version': { -> version})
|
||||||
|
|
||||||
|
// We have to do this in taskGraph.whenReady, so that we use the correct
|
||||||
|
// version to resolve the project dependencies
|
||||||
|
gradle.taskGraph.whenReady {
|
||||||
|
// build a jar containing all dependencies
|
||||||
|
jar {
|
||||||
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
|
||||||
|
manifest {
|
||||||
|
attributes("Main-Class": "org.jf.smali.main")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user