diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-02-02 11:52:30 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-02-02 11:56:27 +0100 |
commit | a56e09ec29b081d77e3b260f5f87f626ae84d16c (patch) | |
tree | b98dcfcfc16fd46ad0f3947866c1eba70d87a2f1 | |
parent | 172b28419039adb2ec9a85e45d16b9b7070cc4c2 (diff) |
Move maven repository to settingsgradle
This is required on Android builds.
-rw-r--r-- | build.gradle | 7 | ||||
-rw-r--r-- | settings.gradle | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/build.gradle b/build.gradle index d025b9b..df5ec64 100644 --- a/build.gradle +++ b/build.gradle @@ -9,13 +9,6 @@ plugins { id 'maven-publish' } -repositories { - mavenLocal() - maven { - url = uri('https://repo.maven.apache.org/maven2/') - } -} - dependencies { compileOnly group: 'org.projectlombok', name: 'lombok', version: lombokVersion annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombokVersion diff --git a/settings.gradle b/settings.gradle index 1f708ff..899ffad 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,11 @@ rootProject.name = 'bgp-java' + +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + mavenLocal() + maven { + url = uri('https://repo.maven.apache.org/maven2/') + } + } +} |