-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build script to allow publishing the jar library as well as bu…
…ilding javadoc and sources jar
- Loading branch information
Showing
2 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,65 @@ | ||
plugins { | ||
// Apply the java-library plugin to add support for Java Library | ||
id 'java-library' | ||
id "com.jfrog.bintray" version "1.7.3" | ||
id "java-library" | ||
id "maven-publish" | ||
} | ||
|
||
sourceCompatibility = '1.8' | ||
|
||
group = 'com.pixelduke' | ||
version = '1.0.0' | ||
|
||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | ||
|
||
jar { | ||
manifest { | ||
attributes( 'Implementation-Title': project.name, | ||
'Implementation-Version': project.version) | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
from javadoc | ||
} | ||
|
||
task sourceJar(type: Jar) { | ||
from sourceSets.main.allJava | ||
classifier "sources" | ||
} | ||
|
||
bintray { | ||
user = property('BINTRAY_USER') | ||
key = property('BINTRAY_KEY') | ||
pkg { | ||
repo = 'maven' | ||
name = 'FXRibbon' | ||
//userOrg = 'dukke' | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/dukke/FXRibbon.git' | ||
publications = ['mavenJava'] | ||
websiteUrl = 'https://www.pixelduke.com/fxribbon' | ||
issueTrackerUrl = 'https://github.com/dukke/FXRibbon/issues' | ||
publicDownloadNumbers = true | ||
version { | ||
name = '1.0.0' | ||
desc = 'FXRibbon First release' // Version description | ||
vcsTag = '1.0.0' | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact sourceJar { | ||
classifier "sources" | ||
} | ||
artifact javadocJar { | ||
classifier "javadoc" | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Tue Apr 10 00:36:23 BST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-all.zip |