1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-20 10:29:09 -05:00
wulkanowy-mirror/api/build.gradle

147 lines
3.3 KiB
Groovy
Raw Normal View History

2017-11-18 15:17:18 -06:00
apply plugin: 'java-library'
2018-05-30 04:57:29 -05:00
apply plugin: 'kotlin'
2017-11-26 09:32:33 -06:00
apply plugin: 'org.sonarqube'
2017-11-18 15:17:18 -06:00
apply plugin: 'jacoco'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
2017-11-18 15:17:18 -06:00
ext {
2017-11-26 09:32:33 -06:00
PUBLISH_GROUP_ID = GROUP_ID
2017-11-18 15:17:18 -06:00
PUBLISH_ARTIFACT_ID = 'api'
2017-11-26 09:32:33 -06:00
PUBLISH_VERSION = System.getenv('GIT_TAG')
2017-11-18 15:17:18 -06:00
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
2017-11-26 09:32:33 -06:00
jacocoTestReport {
reports {
xml.enabled true
}
}
2017-11-18 15:17:18 -06:00
dependencies {
implementation "org.jsoup:jsoup:$jsoup"
implementation "org.apache.commons:commons-lang3:$apacheLang"
implementation "com.google.code.gson:gson:$gson"
2017-11-18 15:17:18 -06:00
2018-05-30 04:57:29 -05:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation "junit:junit:$junit"
testImplementation "org.mockito:mockito-core:$mockito"
2017-11-18 15:17:18 -06:00
}
2017-11-26 09:32:33 -06:00
version = PUBLISH_VERSION
group = GROUP_ID
sonarqube {
properties {
property "sonar.projectName", GROUP_ID + ":api"
property "sonar.projectKey", GROUP_ID + ":wulkanowy-api"
}
}
2017-11-18 15:17:18 -06:00
def siteUrl = 'https://github.com/wulkanowy/wulkanowy'
def gitUrl = 'https://github.com/wulkanowy/wulkanowy.git'
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
pkg {
repo = 'wulkanowy'
name = 'api'
userOrg = 'wulkanowy'
licenses = ['Apache-2.0']
vcsUrl = gitUrl
labels = ['aar', 'android', 'wulkanowy', 'api']
publicDownloadNumbers = true
2017-11-26 09:32:33 -06:00
publish = true
2017-11-18 15:17:18 -06:00
version {
2017-11-26 09:32:33 -06:00
name = PUBLISH_VERSION
vcsTag = PUBLISH_VERSION
2017-11-18 15:17:18 -06:00
released = new Date()
}
}
}
install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
name 'Bintray publish Gradle aar'
url siteUrl
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'mklkj'
name 'Mikołaj Pich'
email 'm.pich@outlook.com'
}
}
scm {
connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}
2017-11-26 09:32:33 -06:00
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
2018-05-30 04:57:29 -05:00
buildscript {
ext.kotlin_version = '1.2.41'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
mavenCentral()
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}