Updated for custom gradle.properties loading
This commit is contained in:
parent
76c462da5e
commit
6cf508069f
|
@ -17,7 +17,7 @@ import java.nio.file.Paths
|
|||
*/
|
||||
buildscript {
|
||||
// load properties from custom location
|
||||
def propsFile = Paths.get('../../gradle.properties').toAbsolutePath().normalize().toFile()
|
||||
def propsFile = Paths.get("${projectDir}/../../gradle.properties").toAbsolutePath().normalize().toFile()
|
||||
println("Loading custom property data from: ${propsFile}")
|
||||
|
||||
def props = new Properties()
|
||||
|
@ -37,6 +37,7 @@ buildscript {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'java-gradle-plugin'
|
||||
|
@ -63,6 +64,7 @@ project.ext.website = 'https://dorkbox.com/'
|
|||
project.ext.url = 'https://git.dorkbox.com/dorkbox/Licensing'
|
||||
project.ext.tags = ['licensing', 'legal', 'notice', 'license', 'dependencies']
|
||||
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
|
@ -79,7 +81,6 @@ sourceSets {
|
|||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
|
@ -106,7 +107,6 @@ gradlePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
pluginBundle {
|
||||
website = project.ext.website
|
||||
vcsUrl = project.ext.url
|
||||
|
@ -218,7 +218,7 @@ nexusStaging {
|
|||
}
|
||||
|
||||
|
||||
// we don't upload the plugin to maven (it's uploaded separately to gradle plugins)
|
||||
// we don't use maven with the plugin (it's uploaded separately to gradle plugins)
|
||||
tasks.withType(PublishToMavenRepository) {
|
||||
onlyIf {
|
||||
repository == publishing.repositories.maven &&
|
||||
|
|
Loading…
Reference in New Issue