This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (72 loc) · 1.91 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.7.20'
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
id 'maven-publish'
}
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")
}
}
}
allprojects {
apply plugin: 'java'
version = "0.1.0-SNAPSHOT"
group = "io.github.wulkanowy.signer"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
}
subprojects {
apply plugin: 'jacoco'
sourceCompatibility = 11
compileKotlin {
kotlinOptions {
jvmTarget = "11"
javaParameters = true
}
}
dependencies {
implementation "com.brsanthu:migbase64:2.2"
testImplementation "junit:junit:4.13"
}
jacocoTestReport {
reports {
xml.getRequired().set(true)
}
}
test {
testLogging.showStandardStreams = false
}
if (project.plugins.hasPlugin('java')) {
tasks.register('sourcesJar', Jar) {
dependsOn classes
getArchiveClassifier().set("sources")
from sourceSets.main.allSource
}
tasks.register('javadocJar', Jar) {
dependsOn javadoc
getArchiveClassifier().set("javadoc")
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
}
dependencies {
implementation project(":hebe-jvm")
implementation project(":jvm")
}