Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
attach/gradle/mavenPublish.gradle
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
88 lines (76 sloc)
2.71 KB
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
apply from: rootProject.file("gradle/native-build.gradle") | |
apply plugin: 'java' | |
apply plugin: 'maven-publish' | |
apply plugin: 'signing' | |
jar { | |
exclude "**/impl/Desktop**", "**/impl/IOS**", "**/impl/Android**", "META-INF/substrate" | |
} | |
task sourcesJar(type: Jar) { | |
from sourceSets.main.allJava | |
archiveClassifier.set('sources') | |
} | |
task javadocJar(type: Jar, dependsOn: javadoc) { | |
from javadoc.destinationDir | |
archiveClassifier.set('javadoc') | |
} | |
publishing { | |
publications { | |
maven(MavenPublication) { | |
from components.java | |
artifact sourcesJar | |
artifact javadocJar | |
artifact androidJar | |
artifact iosJar | |
artifact desktopJar | |
pom { | |
name = "Gluon Attach (${project.name})" | |
description = "API for accessing ${project.name} features" | |
url = 'https://github.com/gluonhq/attach/' | |
developers { | |
developer { | |
name = 'Johan Vos' | |
email = 'johan.vos@gluonhq.com' | |
organization = 'Gluon' | |
organizationUrl = 'https://gluonhq.com' | |
} | |
developer { | |
name = 'Joeri Sykora' | |
email = 'joeri.sykora@gluonhq.com' | |
organization = 'Gluon' | |
organizationUrl = 'https://gluonhq.com' | |
} | |
developer { | |
name = 'Erwin Morrhey' | |
email = 'erwin.morrhey@gluonhq.com' | |
organization = 'Gluon' | |
organizationUrl = 'https://gluonhq.com' | |
} | |
} | |
licenses { | |
license { | |
name = 'The GNU General Public License' | |
url = 'https://opensource.org/licenses/GPL-3.0' | |
distribution = 'repo' | |
} | |
} | |
scm { | |
connection = 'scm:git:https://github.com/gluonhq/attach.git' | |
developerConnection = 'scm:git:ssh://git@github.com/gluonhq/attach.git' | |
url = 'https://github.com/gluonhq/attach' | |
} | |
} | |
pom.withXml { | |
Node pomNode = asNode() | |
pomNode.dependencies.'*'.findAll() { | |
it.groupId.text() == 'org.openjfx' | |
}.each { | |
it.parent().remove(it) | |
} | |
} | |
} | |
} | |
} | |
signing { | |
sign publishing.publications.maven | |
required = { gradle.taskGraph.hasTask(publish) && !version.endsWith("SNAPSHOT") } | |
} |