Skip to content

Commit

Permalink
buildscript: move the "repositories" block to settings.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Oct 6, 2023
1 parent 02124b3 commit 07f675e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 0 additions & 7 deletions common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ tasks.withType(JavaExec) { // Java runtime options:
//jvmArgs '-XX:+UseG1GC', '-XX:MaxGCPauseMillis=10'
}

repositories {
//mavenLocal() // to find local SNAPSHOTs of libraries
mavenCentral()
//maven { url 'https://s01.oss.sonatype.org/content/groups/staging' } // to find libraries staged but not yet released
//maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' } // to find public SNAPSHOTs of libraries
}

// custom tasks for creating source/javadoc JARs:

tasks.register('javadocJar', Jar) {
Expand Down
9 changes: 9 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
* settings.gradle: global settings shared by all jme3-utilities subprojects
*/

dependencyResolutionManagement {
repositories {
//mavenLocal() // to find local SNAPSHOTs of libraries
mavenCentral() // to find libraries released to the Maven Central repository
//maven { url 'https://s01.oss.sonatype.org/content/groups/staging' } // to find libraries staged but not yet released
//maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' } // to find public SNAPSHOTs of libraries
}
}

rootProject.name = 'jme3-utilities'

/*
Expand Down

0 comments on commit 07f675e

Please sign in to comment.