2018-03-06 03:48:48 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'application'
|
2018-03-08 01:59:46 +00:00
|
|
|
apply plugin: 'maven'
|
|
|
|
apply plugin: 'signing'
|
2018-03-06 03:48:48 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-10-28 17:52:10 +00:00
|
|
|
testImplementation 'junit:junit:4.13.2'
|
2018-03-06 03:48:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
mainClassName = 'com.webcodepro.shrinkit.NufxScan'
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
2018-04-05 02:34:04 +00:00
|
|
|
'Main-Class': mainClassName,
|
|
|
|
'Implementation-Title': 'ShrinkItArchive',
|
2020-11-25 01:35:38 +00:00
|
|
|
'Implementation-Version': archiveVersion
|
2018-03-06 03:48:48 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2018-03-08 01:59:46 +00:00
|
|
|
|
2018-05-29 15:52:29 +00:00
|
|
|
|
|
|
|
javadoc {
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|
|
|
|
|
2018-03-08 01:59:46 +00:00
|
|
|
task javadocJar(type: Jar) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from javadoc
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives javadocJar, sourcesJar
|
|
|
|
}
|
|
|
|
|
|
|
|
signing {
|
2018-05-29 15:52:29 +00:00
|
|
|
// Only sign if we're uploading...
|
|
|
|
required { gradle.taskGraph.hasTask("uploadArchives") }
|
2018-03-08 01:59:46 +00:00
|
|
|
sign configurations.archives
|
|
|
|
}
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
mavenDeployer {
|
|
|
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
|
|
|
|
|
|
|
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
|
2018-05-10 02:57:57 +00:00
|
|
|
authentication(userName: findProperty('ossrhUsername'), password: findProperty('ossrhPassword'))
|
2018-03-08 01:59:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
|
2018-05-10 02:57:57 +00:00
|
|
|
authentication(userName: findProperty('ossrhUsername'), password: findProperty('ossrhPassword'))
|
2018-03-08 01:59:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pom.project {
|
|
|
|
name archivesBaseName
|
|
|
|
packaging 'jar'
|
|
|
|
description 'A Java library for managing Apple II ShrinkIt archives.'
|
|
|
|
url 'https://applecommander.github.io/'
|
|
|
|
|
|
|
|
scm {
|
|
|
|
url 'https://github.com/AppleCommander/ShrinkItArchive'
|
|
|
|
}
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'The GNU General Public License (GPL) Version 2, June 1991'
|
|
|
|
url 'https://www.gnu.org/licenses/gpl-2.0.html'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id 'robgreene'
|
|
|
|
email 'robgreene@gmail.com'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|