-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
172 additions
and
23 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// ----------------------------------------------------------------------------- | ||
// publishing information | ||
// ----------------------------------------------------------------------------- | ||
ext.publishing.artifactId = project.name.toLowerCase() | ||
ext.publishing.groupId = 'eu.mihosoft.nativefx' | ||
ext.publishing.versionId = '0.2.0' | ||
|
||
ext.publishing.developerName = 'Michael Hoffer' | ||
ext.publishing.developerAlias = 'miho' | ||
ext.publishing.developerEmail = '[email protected]' | ||
ext.publishing.inceptionYear = '2019' | ||
|
||
ext.publishing.bintray.repo = 'NativeFX' | ||
ext.publishing.bintray.userOrg = 'miho' | ||
ext.publishing.bintray.name = project.name | ||
|
||
ext.publishing.desc = 'Native rendering for JavaFX via shared memory.' | ||
ext.publishing.license = 'Apache-2.0' | ||
ext.publishing.licenseUrl = 'https://github.com/miho/NativeFX/blob/master/LICENSE' | ||
ext.publishing.labels = ['nativefx', 'javafx', 'native rendering', 'shared memory'] | ||
ext.publishing.websiteUrl = 'https://github.com/miho/NativeFX' | ||
ext.publishing.issueTrackerUrl = 'https://github.com/miho/NativeFX/issues' | ||
ext.publishing.vcsUrl = 'https://github.com/miho/NativeFX.git' | ||
|
||
ext.publishing.pomName = ext.publishing.artifactId |
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 |
---|---|---|
@@ -0,0 +1,122 @@ | ||
// ----------------------------------------------------------------------------- | ||
// Collect publishing information | ||
// ----------------------------------------------------------------------------- | ||
ext.publishing = [:] | ||
ext.publishing.bintray = [:] | ||
|
||
ext.publishing.pomName = ext.publishing.artifactId | ||
|
||
apply from: "gradle/project-info.gradle" | ||
|
||
// ----------------------------------------------------------------------------- | ||
// Performs publishing | ||
// ----------------------------------------------------------------------------- | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
// create one jar for the source files | ||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives jar | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
Date buildTimeAndDate = new Date() | ||
ext { | ||
buildDate = new java.text.SimpleDateFormat('yyyy-MM-dd').format(buildTimeAndDate) | ||
buildTime = new java.text.SimpleDateFormat('HH:mm:ss.SSSZ').format(buildTimeAndDate) | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Built-By': System.properties['user.name'], | ||
'Created-By': System.properties['java.version'] + " (" + System.properties['java.vendor'] + " " + System.properties['java.vm.version'] + ")", | ||
'Build-Date': project.buildDate, | ||
'Build-Time': project.buildTime, | ||
'Build-Revision': versioning.info.commit, | ||
'Specification-Title': project.name, | ||
'Specification-Version': project.version, | ||
'Implementation-Title': project.name, | ||
'Implementation-Version': project.version | ||
) | ||
} | ||
} | ||
|
||
|
||
def pomConfig = { | ||
name ext.publishing.pomName | ||
description ext.publishing.desc | ||
url ext.publishing.websiteUrl | ||
inceptionYear ext.publishing.inceptionYear | ||
licenses { | ||
license([:]) { | ||
name ext.publishing.license | ||
url ext.publishing.licenseUrl | ||
distribution 'repo' | ||
} | ||
} | ||
scm { | ||
url ext.publishing.vcsUrl | ||
connection ext.publishing.vcsUrl | ||
developerConnection ext.publishing.vcsUrl | ||
} | ||
developers { | ||
developer { | ||
id ext.publishing.developerNameAlias | ||
name ext.publishing.developerName | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenCustom(MavenPublication) { | ||
groupId publishing.groupId | ||
artifactId publishing.artifactId | ||
version publishing.versionId | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
root.appendNode 'description', publishing.desc | ||
root.children().last() + pomConfig | ||
} | ||
} | ||
} | ||
} | ||
|
||
if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = '' | ||
if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = '' | ||
|
||
bintray { | ||
user = project.bintrayUsername | ||
key = project.bintrayApiKey | ||
publications = ['mavenCustom'] | ||
pkg { | ||
repo = publishing.bintray.repo | ||
userOrg = publishing.bintray.userOrg | ||
name = publishing.bintray.name | ||
desc = publishing.desc | ||
licenses = [publishing.license] | ||
labels = publishing.labels | ||
websiteUrl = publishing.websiteUrl | ||
issueTrackerUrl = publishing.issueTrackerUrl | ||
vcsUrl = publishing.vcsUrl | ||
publicDownloadNumbers = true | ||
|
||
version { | ||
name = publishing.versionId | ||
vcsTag = 'v' + publishing.versionId | ||
} | ||
} | ||
} |
Binary file not shown.
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,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-rc-2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
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