Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
134 lines (114 sloc) 3.45 KB
/*
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'org.kordamp.gradle:project-gradle-plugin:0.11.0'
classpath 'org.ajoberstar:gradle-git:1.7.2'
classpath 'gradle.plugin.gradle-java9-collision:plugin:0.2.3'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.kordamp.gradle.project'
apply plugin: 'org.jonnyzzz.java9c'
if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = ''
if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = ''
if (!project.hasProperty('sonatypeUsername')) ext.sonatypeUsername = ''
if (!project.hasProperty('sonatypePassword')) ext.sonatypePassword = ''
config {
release = (rootProject.findProperty('release') ?: false).toBoolean()
info {
name = 'jsr377-tck'
vendor = 'JSR-377'
description = 'JSR 377 - TCK'
inceptionYear = '2015'
tags = ['desktop', 'java', 'jsr377']
links {
website = 'https://github.com/jsr377/jsr377-tck'
issueTracker = 'https://github.com/jsr377/jsr377-tck/issues'
scm = 'https://github.com/jsr377/jsr377-tck.git'
}
people {
person {
id = 'aalmiray'
name = 'Andres Almiray'
roles = ['Spec Lead', 'Developer']
}
}
specification {
title = 'JSR-377 API'
}
implementation { enabled = false }
credentials {
sonatype {
username = project.sonatypeUsername
password = project.sonatypePassword
}
}
}
license {
licenses {
license {
id = 'Apache-2.0'
}
}
}
bintray {
credentials {
username = project.bintrayUsername
password = project.bintrayApiKey
}
userOrg = 'jsr377'
name = 'jsr377-api'
}
stats {
formats = ['xml', 'txt']
}
javadoc {
options {
links('http://docs.oracle.com/javase/8/docs/api')
}
}
}
idea {
project {
jdkName rootProject.sourceCompatibility
languageLevel rootProject.sourceCompatibility
}
}
repositories {
jcenter()
}
dependencies {
compile "${project.group}:jsr377-api:$jsr377Version"
compile "org.junit.jupiter:junit-jupiter-api:$junit5Version"
compile "org.hamcrest:java-hamcrest:$hamcrestVersion"
compile("org.awaitility:awaitility:$awaitilityVersion") {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
exclude group: 'org.hamcrest', module: 'hamcrest-library'
}
}
jar {
manifest {
attributes(
'Automatic-Module-Name': 'javax.application.tck'
)
}
}