build: include bleeding edge smali from source via jitpack (#2941)

* build: include smali from source

* refactor: adjust build.gradle for repositories
This commit is contained in:
Connor Tumbleson 2022-11-24 06:15:41 -05:00 committed by GitHub
parent 35ce8fc061
commit 67a936f1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 37 deletions

View File

@ -23,11 +23,12 @@ dependencies {
} }
buildscript { buildscript {
repositories {
mavenCentral()
}
dependencies { dependencies {
repositories {
mavenCentral()
gradlePluginPortal()
}
classpath(depends.proguard_gradle) { classpath(depends.proguard_gradle) {
exclude group: 'com.android.tools.build' exclude group: 'com.android.tools.build'
} }

View File

@ -33,20 +33,19 @@ processResources {
} }
dependencies { dependencies {
api project(':brut.j.dir')
api project(':brut.j.util')
api project(':brut.j.common')
implementation depends.baksmali
implementation depends.smali
implementation depends.snakeyaml
implementation depends.xmlpull
implementation depends.guava
implementation depends.commons_lang
implementation depends.commons_io
implementation depends.commons_text
testImplementation depends.junit testImplementation depends.junit
api project(':brut.j.dir'),
project(':brut.j.util'),
project(':brut.j.common')
implementation depends.baksmali,
depends.smali,
depends.snakeyaml,
depends.xmlpull,
depends.guava,
depends.commons_lang,
depends.commons_io,
depends.commons_text
testImplementation depends.xmlunit testImplementation depends.xmlunit
} }

View File

@ -13,8 +13,3 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
dependencies {
testImplementation depends.junit
}

View File

@ -15,8 +15,7 @@
*/ */
dependencies { dependencies {
implementation project(':brut.j.common'), implementation project(':brut.j.common')
project(':brut.j.util'), implementation project(':brut.j.util')
depends.commons_io implementation depends.commons_io
testImplementation depends.junit
} }

View File

@ -15,7 +15,6 @@
*/ */
dependencies { dependencies {
implementation project(':brut.j.common'), implementation project(':brut.j.common')
depends.commons_io implementation depends.commons_io
testImplementation depends.junit
} }

View File

@ -18,7 +18,7 @@ import java.nio.charset.StandardCharsets
buildscript { buildscript {
ext { ext {
depends = [ depends = [
baksmali : 'org.smali:baksmali:2.5.2', baksmali : 'com.github.iBotPeaches.smali:baksmali:403e90375e',
commons_cli : 'commons-cli:commons-cli:1.5.0', commons_cli : 'commons-cli:commons-cli:1.5.0',
commons_io : 'commons-io:commons-io:2.11.0', commons_io : 'commons-io:commons-io:2.11.0',
commons_lang : 'org.apache.commons:commons-lang3:3.12.0', commons_lang : 'org.apache.commons:commons-lang3:3.12.0',
@ -27,14 +27,13 @@ buildscript {
junit : 'junit:junit:4.13.2', junit : 'junit:junit:4.13.2',
proguard_gradle: 'com.guardsquare:proguard-gradle:7.1.1', proguard_gradle: 'com.guardsquare:proguard-gradle:7.1.1',
snakeyaml : 'org.yaml:snakeyaml:1.32:android', snakeyaml : 'org.yaml:snakeyaml:1.32:android',
smali : 'org.smali:smali:2.5.2', smali : 'com.github.iBotPeaches.smali:smali:403e90375e',
xmlpull : 'xpp3:xpp3:1.1.4c', xmlpull : 'xpp3:xpp3:1.1.4c',
xmlunit : 'xmlunit:xmlunit:1.6', xmlunit : 'xmlunit:xmlunit:1.6',
] ]
} }
repositories { repositories {
mavenCentral()
gradlePluginPortal() gradlePluginPortal()
} }
dependencies { dependencies {
@ -80,6 +79,14 @@ allprojects {
"licenseMain", "licenseMain",
"licenseTest" "licenseTest"
] ]
repositories {
mavenCentral()
// Obtain baksmali/smali from source builds - https://github.com/iBotPeaches/smali
// Remove when official smali releases come out again.
maven { url 'https://jitpack.io' }
}
} }
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
@ -136,10 +143,6 @@ task snapshot {
subprojects { subprojects {
apply plugin: 'java' apply plugin: 'java'
repositories {
mavenCentral()
}
test { test {
testLogging { testLogging {
exceptionFormat = 'full' exceptionFormat = 'full'