-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from RADAR-base/release-0.2.0
Release 0.2.0
- Loading branch information
Showing
58 changed files
with
983 additions
and
548 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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
plugins { | ||
id 'org.jetbrains.kotlin.jvm' version '1.3.41' | ||
id 'com.jfrog.bintray' version '1.8.4' | ||
id 'maven-publish' | ||
id 'org.jetbrains.kotlin.jvm' version '1.3.50' | ||
id 'com.jfrog.bintray' version '1.8.4' apply false | ||
} | ||
|
||
description = 'Library for authentication and authorization with the RADAR platform using Jersey' | ||
description = 'Library for Jersey authorization, exception handling and configuration with the RADAR platform' | ||
group = 'org.radarbase' | ||
version = '0.1.0' | ||
version = '0.2.0' | ||
|
||
ext { | ||
githubRepoName = 'RADAR-base/ManagementPortal' | ||
githubUrl = 'https://github.com/RADAR-base/ManagementPortal' | ||
githubRepoName = 'RADAR-base/radar-jersey' | ||
githubUrl = "https://github.com/${githubRepoName}.git".toString() | ||
issueUrl = "https://github.com/$githubRepoName/issues".toString() | ||
website = 'http://radar-base.org' | ||
|
||
|
@@ -40,25 +39,34 @@ dependencies { | |
|
||
api("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion") | ||
|
||
implementation("org.glassfish.jersey.containers:jersey-container-grizzly2-http:$jerseyVersion") | ||
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion") | ||
|
||
// exception template rendering | ||
implementation 'com.github.spullara.mustache.java:compiler:0.9.6' | ||
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" | ||
implementation "org.slf4j:slf4j-api:1.7.26" | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter:5.5.2") | ||
testImplementation 'org.hamcrest:hamcrest-all:1.3' | ||
testImplementation("com.squareup.okhttp3:okhttp:$okhttpVersion") | ||
implementation("org.glassfish.jersey.inject:jersey-hk2:$jerseyVersion") | ||
|
||
testImplementation("org.glassfish.grizzly:grizzly-http-server:${grizzlyVersion}") | ||
runtimeOnly("org.glassfish.jersey.media:jersey-media-json-jackson:$jerseyVersion") | ||
|
||
testImplementation("org.glassfish.jersey.containers:jersey-container-grizzly2-http:${jerseyVersion}") | ||
testImplementation("org.glassfish.jersey.containers:jersey-container-grizzly2-servlet:${jerseyVersion}") | ||
testImplementation("org.glassfish.jersey.inject:jersey-hk2:${jerseyVersion}") | ||
testRuntimeOnly("org.glassfish.jersey.media:jersey-media-json-jackson:${jerseyVersion}") | ||
runtimeOnly("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion") | ||
runtimeOnly("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion") | ||
runtimeOnly("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion") | ||
|
||
testRuntimeOnly 'javax.xml.bind:jaxb-api:2.2.11' | ||
testRuntimeOnly 'com.sun.xml.bind:jaxb-core:2.2.11' | ||
testRuntimeOnly 'com.sun.xml.bind:jaxb-impl:2.2.11' | ||
testRuntimeOnly 'javax.activation:activation:1.1.1' | ||
runtimeOnly 'javax.xml.bind:jaxb-api:2.2.11' | ||
runtimeOnly 'com.sun.xml.bind:jaxb-core:2.2.11' | ||
runtimeOnly 'com.sun.xml.bind:jaxb-impl:2.2.11' | ||
runtimeOnly 'javax.activation:activation:1.1.1' | ||
|
||
testRuntimeOnly("org.glassfish.grizzly:grizzly-http-server:$grizzlyVersion") | ||
testRuntimeOnly("org.glassfish.jersey.containers:jersey-container-grizzly2-servlet:$jerseyVersion") | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter:5.5.2") | ||
testImplementation 'org.hamcrest:hamcrest-all:1.3' | ||
testImplementation("com.squareup.okhttp3:okhttp:$okhttpVersion") | ||
|
||
testRuntime 'org.slf4j:slf4j-simple:1.7.26' | ||
} | ||
|
@@ -67,141 +75,17 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { | |
kotlinOptions.jvmTarget = "11" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
events "passed", "skipped", "failed" | ||
exceptionFormat "full" | ||
showStandardStreams = true | ||
} | ||
} | ||
|
||
def sharedManifest = manifest { | ||
attributes("Implementation-Title": project.name, | ||
"Implementation-Version": version) | ||
} | ||
|
||
jar { | ||
// archiveBaseName.set(project.name) | ||
manifest.from sharedManifest | ||
} | ||
|
||
// custom tasks for creating source/javadoc jars | ||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
archiveClassifier.set('sources') | ||
from sourceSets.main.allSource | ||
manifest.from sharedManifest | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
archiveClassifier.set('javadoc') | ||
from javadoc.destinationDir | ||
manifest.from sharedManifest | ||
} | ||
|
||
// add javadoc/source jar tasks as artifacts | ||
artifacts { | ||
archives sourcesJar, javadocJar | ||
} | ||
|
||
ext.nexusRepoBase = 'https://repo.thehyve.nl/content/repositories' | ||
|
||
publishing { | ||
publications { | ||
mavenJar(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
artifact javadocJar | ||
|
||
pom { | ||
name = project.name | ||
description = project.description | ||
url = githubUrl | ||
licenses { | ||
license { | ||
name = 'The Apache Software License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution = 'repo' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'dennyverbeeck' | ||
name = 'Denny Verbeeck' | ||
email = '[email protected]' | ||
organization = 'Janssen R&D' | ||
} | ||
developer { | ||
id = 'blootsvoets' | ||
name = 'Joris Borgdorff' | ||
email = '[email protected]' | ||
organization = 'The Hyve' | ||
} | ||
developer { | ||
id = 'nivemaham' | ||
name = 'Nivethika Mahasivam' | ||
email = '[email protected]' | ||
organization = 'The Hyve' | ||
} | ||
} | ||
issueManagement { | ||
system = 'GitHub' | ||
url = githubUrl + '/issues' | ||
} | ||
organization { | ||
name = 'RADAR-base' | ||
url = website | ||
} | ||
scm { | ||
connection = 'scm:git:' + githubUrl | ||
url = githubUrl | ||
} | ||
} | ||
|
||
} | ||
} | ||
repositories { | ||
maven { | ||
def releasesRepoUrl = "$nexusRepoBase/releases" | ||
def snapshotsRepoUrl = "$nexusRepoBase/snapshots" | ||
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl | ||
credentials { | ||
username = project.hasProperty('nexusUser') ? project.property('nexusUser') : System.getenv('NEXUS_USER') | ||
password = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : System.getenv('NEXUS_PASSWORD') | ||
} | ||
} | ||
} | ||
} | ||
|
||
bintray { | ||
user project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER') | ||
key project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY') | ||
override false | ||
publications 'mavenJar' | ||
pkg { | ||
repo = project.group | ||
name = project.name | ||
userOrg = 'radar-base' | ||
desc = project.description | ||
licenses = ['Apache-2.0'] | ||
websiteUrl = website | ||
issueTrackerUrl = issueUrl | ||
vcsUrl = githubUrl | ||
githubRepo = githubRepoName | ||
githubReleaseNotesFile = 'README.md' | ||
version { | ||
name = project.version | ||
desc = project.description | ||
vcsTag = System.getenv('TRAVIS_TAG') | ||
released = new Date() | ||
} | ||
} | ||
} | ||
|
||
bintrayUpload.dependsOn 'assemble' | ||
|
||
wrapper { | ||
gradleVersion = "5.6.2" | ||
} | ||
} | ||
|
||
apply from: "gradle/publishing.gradle" |
Oops, something went wrong.