-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed version range style. New publish script. Increased version.
- Loading branch information
Showing
4 changed files
with
54 additions
and
30 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 |
---|---|---|
|
@@ -16,25 +16,33 @@ | |
|
||
publishing { | ||
publications { | ||
LocalMavenRepo(MavenPublication) { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
|
||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
pom { | ||
//packaging 'jar' | ||
url = 'https://github.com/eclipse/sprotty-server' | ||
afterEvaluate { | ||
groupId project.group | ||
artifactId project.name | ||
version project.version | ||
if (project.hasProperty('title')) { | ||
name = project.title | ||
description = project.description | ||
} | ||
} | ||
url = 'https://github.com/eclipse-sprotty/sprotty-server' | ||
licenses { | ||
license { | ||
name = 'Eclipse Public License v2.0' | ||
url = 'http://www.eclipse.org/legal/epl-2.0' | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:[email protected]:eclipse/sprotty-server.git' | ||
developerConnection = 'scm:git:[email protected]:eclipse/sprotty-server.git' | ||
url = '[email protected]:eclipse/sprotty-server.git' | ||
connection = 'scm:git:[email protected]:eclipse-sprotty/sprotty-server.git' | ||
developerConnection = 'scm:git:[email protected]:eclipse-sprotty/sprotty-server.git' | ||
url = '[email protected]:eclipse-sprotty/sprotty-server.git' | ||
} | ||
developers { | ||
developer { | ||
|
@@ -53,20 +61,34 @@ publishing { | |
organizationUrl = 'https://www.sigasi.com/' | ||
} | ||
} | ||
// We need to wait until the project's own build file has been executed | ||
// so we can use the title and description settings for setting up Maven publishing. | ||
afterEvaluate { | ||
if (project.hasProperty('title')) { | ||
name = project.title | ||
description = project.description | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
url = "$rootProject.buildDir/maven-repository" | ||
name = "OSSRH" | ||
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' | ||
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/' | ||
credentials { | ||
username = System.getenv('SONATYPE_USERNAME') ?: '' | ||
password = System.getenv('SONATYPE_PASSWORD') ?: '' | ||
} | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
// use this URL for local testing/debugging purposes | ||
// url = "file:" + file("${rootDir}/build/maven-repository") | ||
} | ||
} | ||
|
||
signing { | ||
// Use signing.gnupg.passphrase property to bypass the secret key passphrase | ||
useGpgCmd() | ||
sign publishing.publications.mavenJava | ||
} | ||
|
||
javadoc { | ||
if (JavaVersion.current().isJava9Compatible()) { | ||
options.addBooleanOption('html5', true) | ||
} | ||
} | ||
} |
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