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'
|
2023-11-28 22:14:35 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2023-11-28 22:14:35 +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"
|
2023-11-28 22:14:35 +01:00
|
|
|
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 {
|
2023-11-28 22:14:35 +01:00
|
|
|
xml.getRequired().set(true)
|
2020-03-21 23:46:45 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
testLogging.showStandardStreams = false
|
|
|
|
}
|
|
|
|
|
|
|
|
if (project.plugins.hasPlugin('java')) {
|
2023-11-28 22:14:35 +01:00
|
|
|
tasks.register('sourcesJar', Jar) {
|
|
|
|
dependsOn classes
|
|
|
|
getArchiveClassifier().set("sources")
|
2020-03-21 23:46:45 +01:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
2023-11-28 22:14:35 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2023-11-28 22:14:35 +01:00
|
|
|
|
|
|
|
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
|
|
|
}
|