-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (75 loc) · 1.96 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
86
87
88
89
90
buildscript
{
ext.kotlin_version = '1.4.20'
repositories
{
mavenCentral()
}
dependencies
{
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// Should the kotlin dependency go in Command-line? Core?
}
}
subprojects
{
version 0.28
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'jacoco'
group = 'org.museautomation'
repositories
{
mavenLocal()
mavenCentral()
}
//noinspection GroovyAssignabilityCheck
dependencies
{
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'io.github.microutils:kotlin-logging:2.0.4'
testCompile 'org.junit.jupiter:junit-jupiter-api:5+'
}
task copyTestResources(type: Copy) {
from "${projectDir}/src/test/resources"
into "${buildDir}/classes/test"
}
processTestResources.dependsOn copyTestResources
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
javadoc {
options.addBooleanOption('html5', true)
options.addStringOption('Xdoclint:none', '-quiet')
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
mavenLocal()
}
}
artifacts
{
archives sourcesJar
archives javadocJar
}
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
wrapper {
gradleVersion = '6.3'
}