Skip to content

Commit

Permalink
Update gradle script, enabling publication to Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
dukke committed Jan 20, 2019
1 parent 2634251 commit 3284f2c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions jmetro/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ artifacts {
}

/* Publishing */
/* - for publishing to maven central need to define MAVEN_USERNAME and MAVEN_PASSWORD as environment variables */
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
Expand All @@ -64,6 +65,41 @@ bintray {
name = project.version
desc = versionDescription // Version description
vcsTag = project.version
mavenCentralSync {
sync = true
user = System.getenv('MAVEN_USERNAME')
password = System.getenv('MAVEN_PASSWORD')
}
}
}
}

def pomConfig = {
packaging 'jar'
name project.name
url 'https://www.pixelduke.com/jmetro'
inceptionYear '2012'
licenses {
license([:]) {
name 'BSD New'
url 'https://opensource.org/licenses/BSD-3-Clause'
distribution 'repo'
}
}
scm {
url 'https://github.com/JFXtras/jfxtras-styles.git'
}
developers {
[
dukke: 'Pedro Duque Vieira',
].each { devId, devName ->
developer {
id devId
name devName
roles {
role 'Developer'
}
}
}
}
}
Expand All @@ -78,6 +114,11 @@ publishing {
artifact javadocJar {
classifier "javadoc"
}

pom.withXml {
asNode().children().last() + pomConfig
asNode().appendNode('description', "A theme / look and feel for JavaFX inspired by Microsoft's Fluent Design (previously named Metro)")
}
}
}
}
Expand Down

0 comments on commit 3284f2c

Please sign in to comment.