refactor(gradle): repositories are a property of Publishing, not a specific publication.
@@ -8,14 +8,6 @@ apply from: "$rootDir/config/gradle/common.gradle"
apply plugin: 'maven-publish'
publishing {
- publications {
- "$project.name"(MavenPublication) {
- // Without this we get a .pom with no dependencies
- from components.java
-
- artifact source: sourceJar, classifier: 'sources'
- artifact source: javadocJar, classifier: 'javadoc'
-
repositories {
maven {
name = 'TerasologyOrg'
@@ -55,6 +47,14 @@ publishing {
}
}
}
+
+ publications {
+ "$project.name"(MavenPublication) {
+ // Without this we get a .pom with no dependencies
+ from components.java
+
+ artifact source: sourceJar, classifier: 'sources'
+ artifact source: javadocJar, classifier: 'javadoc'
}
}
}
