Skip to content

Commit

Permalink
refactor: adjust build.gradle for repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Nov 19, 2022
1 parent b6b4a91 commit dc88cc9
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 42 deletions.
9 changes: 5 additions & 4 deletions brut.apktool/apktool-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ dependencies {
}

buildscript {
repositories {
mavenCentral()
}

dependencies {
repositories {
mavenCentral()
gradlePluginPortal()
}

classpath(depends.proguard_gradle) {
exclude group: 'com.android.tools.build'
}
Expand Down
35 changes: 13 additions & 22 deletions brut.apktool/apktool-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,19 @@ processResources {
}

dependencies {
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
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.xmlunit

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' }
}
}
5 changes: 0 additions & 5 deletions brut.j.common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

dependencies {
testImplementation depends.junit
}

7 changes: 3 additions & 4 deletions brut.j.dir/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
*/

dependencies {
implementation project(':brut.j.common'),
project(':brut.j.util'),
depends.commons_io
testImplementation depends.junit
implementation project(':brut.j.common')
implementation project(':brut.j.util')
implementation depends.commons_io
}
5 changes: 2 additions & 3 deletions brut.j.util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

dependencies {
implementation project(':brut.j.common'),
depends.commons_io
testImplementation depends.junit
implementation project(':brut.j.common')
implementation depends.commons_io
}
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ allprojects {
"licenseMain",
"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 {
Expand Down Expand Up @@ -135,10 +143,6 @@ task snapshot {
subprojects {
apply plugin: 'java'

repositories {
mavenCentral()
}

test {
testLogging {
exceptionFormat = 'full'
Expand Down

0 comments on commit dc88cc9

Please sign in to comment.