uonet-request-signer/build.gradle

86 lines
1.9 KiB
Groovy
Raw Permalink Normal View History

2020-03-21 23:29:19 +01:00
plugins {
2022-11-16 10:47:43 +01:00
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.7.20'
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
2022-11-16 10:47:43 +01:00
id 'maven-publish'
2020-03-21 23:46:45 +01:00
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
2020-03-21 23:46:45 +01:00
allprojects {
apply plugin: 'java'
version = "0.1.0-SNAPSHOT"
group = "io.github.wulkanowy.signer"
2020-03-21 23:46:45 +01:00
repositories {
mavenCentral()
2022-11-16 10:47:43 +01:00
maven { url "https://jitpack.io" }
2020-03-21 23:46:45 +01:00
}
}
subprojects {
apply plugin: 'jacoco'
2022-11-16 10:47:43 +01:00
sourceCompatibility = 11
2020-03-21 23:46:45 +01:00
compileKotlin {
kotlinOptions {
2022-11-16 10:47:43 +01:00
jvmTarget = "11"
2020-03-21 23:46:45 +01:00
javaParameters = true
}
}
dependencies {
implementation "com.brsanthu:migbase64:2.2"
testImplementation "junit:junit:4.13"
}
jacocoTestReport {
reports {
xml.getRequired().set(true)
2020-03-21 23:46:45 +01:00
}
}
test {
testLogging.showStandardStreams = false
}
if (project.plugins.hasPlugin('java')) {
tasks.register('sourcesJar', Jar) {
dependsOn classes
getArchiveClassifier().set("sources")
2020-03-21 23:46:45 +01:00
from sourceSets.main.allSource
}
tasks.register('javadocJar', Jar) {
dependsOn javadoc
getArchiveClassifier().set("javadoc")
2020-03-21 23:46:45 +01:00
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
2020-03-21 23:29:19 +01:00
}
dependencies {
2022-11-16 10:47:43 +01:00
implementation project(":hebe-jvm")
implementation project(":jvm")
2020-03-21 23:29:19 +01:00
}