-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build mods to cater for publishing of artefacts to Maven Central. Also included removing some unsupported Javadoc tags from source to reduce warning noise
- Loading branch information
1 parent
0cd7a68
commit e5d1747
Showing
29 changed files
with
169 additions
and
57 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 |
---|---|---|
|
@@ -2,55 +2,77 @@ | |
* This build file was auto generated by running the Gradle 'init' task | ||
* by 'robw' at '21/12/16 15:04' with Gradle 3.2.1 | ||
* | ||
* This generated file contains a commented-out sample Java project to get you started. | ||
* For more details take a look at the Java Quickstart chapter in the Gradle | ||
* user guide available at https://docs.gradle.org/3.2.1/userguide/tutorial_java_projects.html | ||
*/ | ||
ext { | ||
dev_id = 'walkerr' | ||
dev_name = 'Rob Walker' | ||
dev_email = '[email protected]' | ||
dev_organization = 'Ascert LLC' | ||
dev_organizationUrl = 'http://www.ascert.com' | ||
|
||
gpl_name = 'GNU Library General Public License version 2' | ||
gpl_url = 'https://github.com/AscertLLC/openterm/blob/master/LICENSE' | ||
} | ||
|
||
|
||
allprojects { | ||
|
||
repositories { | ||
// Usual ones | ||
mavenCentral() | ||
jcenter() | ||
// For GitHub project dependencies | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
apply plugin: 'maven-publish' | ||
|
||
group = "com.github.AscertLLC" | ||
description = 'open.term 3270' | ||
version = '1.5.2' | ||
|
||
group = "com.ascert.open" | ||
} | ||
|
||
|
||
subprojects { | ||
apply plugin: 'java' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
dependencies { | ||
testCompile group: 'junit', name: 'junit', version: '4.+' | ||
testCompile group: 'junit', name: 'junit', version: '[4,)' | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes( 'Implementation-Title': project.description, | ||
'Implementation-Version': project.version, | ||
'Main-Class': 'com.ascert.open.term.application.ClientLauncher', | ||
) | ||
} | ||
} | ||
task javadocJar(type: Jar) { | ||
classifier = 'javadoc' | ||
javadoc.options.addBooleanOption('Xdoclint:none', true) | ||
javadoc.options.addStringOption('-quiet') | ||
from javadoc | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
artifacts { | ||
archives javadocJar, sourcesJar | ||
} | ||
|
||
signing { | ||
//def signingKey = findProperty("signingKey") | ||
//def signingPassword = findProperty("signingPassword") | ||
//useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign configurations.archives | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
|
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,12 +1,64 @@ | ||
description = 'open.term 3270' | ||
version = '1.5.3' | ||
archivesBaseName = 'openterm' | ||
|
||
dependencies { | ||
compile project(":vncj") | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes( 'Implementation-Title': project.description, | ||
'Implementation-Version': project.version, | ||
'Main-Class': 'com.ascert.open.term.application.ClientLauncher', | ||
) | ||
} | ||
} | ||
|
||
task execute(type:JavaExec) { | ||
main = "com.ascert.open.term.application.ClientLauncher" | ||
classpath = sourceSets.main.runtimeClasspath | ||
|
||
systemProperties System.getProperties(); | ||
//println systemProperties | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
pom.project { | ||
name project.description | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'An open source emulator supporting 3270 and potentially later 5250 terminal types.' | ||
url 'https://github.com/AscertLLC/openterm' | ||
|
||
scm { | ||
connection 'https://github.com/AscertLLC/openterm.git' | ||
developerConnection 'scm:git:ssh://[email protected]/AscertLLC/openterm.git' | ||
url 'https://github.com/AscertLLC/openterm' | ||
} | ||
|
||
licenses { | ||
license { | ||
name "${gpl_name}" | ||
url "${gpl_url}" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "${dev_id}" | ||
name = "${dev_name}" | ||
email = "${dev_email}" | ||
organization = "${dev_organization}" | ||
organizationUrl = "${dev_organizationUrl}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
|
||
|
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -5,14 +5,52 @@ | |
* peer classes removed as no longer compatible with Java8+. | ||
*/ | ||
description = 'Basic VNC Java Server' | ||
version = "2.0.1" | ||
version = "2.0.2" | ||
archivesBaseName = "vncj" | ||
|
||
dependencies | ||
{ | ||
compile "org.java-websocket:Java-WebSocket:1.3.8" | ||
// We track the Felix HTTP Jetty version here for maximum cross compatibility | ||
compile ("org.eclipse.jetty.websocket:websocket-servlet:9.4.11.v20180605") | ||
|
||
compile ("org.eclipse.jetty.websocket:websocket-servlet:9.4.11.v20180605") | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
pom.project { | ||
name project.description | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'Basic set of Java classes to act as a VNC server.' | ||
url 'https://github.com/AscertLLC/openterm' | ||
|
||
scm { | ||
connection 'https://github.com/AscertLLC/openterm.git' | ||
developerConnection 'scm:git:ssh://[email protected]/AscertLLC/openterm.git' | ||
url 'https://github.com/AscertLLC/openterm' | ||
} | ||
|
||
licenses { | ||
license { | ||
name "${gpl_name}" | ||
url "${gpl_url}" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = "${dev_id}" | ||
name = "${dev_name}" | ||
email = "${dev_email}" | ||
organization = "${dev_organization}" | ||
organizationUrl = "${dev_organizationUrl}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
|
Oops, something went wrong.