-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
123 lines (98 loc) · 2.94 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
ext.kotlinVersion = "$kotlinVersion"
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion"
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'net.researchgate:gradle-release:2.6.0'
}
}
group = "com.kiiadi.ktfriendly"
apply plugin: 'net.researchgate.release'
release {
failOnPublishNeeded = false
buildTasks = ['uploadArchives']
preTagCommitMessage = '[Release] Updating to release version:'
newVersionCommitMessage = '[Release] Updating to new snapshot version:'
}
allprojects {
apply plugin: 'com.bmuschko.nexus'
modifyPom {
project {
url 'https://github.com/kiiadi/kotlin-friendly-linters'
scm {
url 'https://github.com/kiiadi/kotlin-friendly-linters'
connection 'scm:https://[email protected]/kiiadi/kotlin-friendly-linters.git'
developerConnection 'scm:git://github.com/kiiadi/kotlin-friendly-linters.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'kiiadi'
name 'Kyle Thomson'
}
}
}
}
}
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'maven'
apply plugin: 'jacoco'
group = parent.group
version = parent.version
sourceSets {
main.java.srcDir 'src'
main.resources.srcDir 'resources'
test.java.srcDir 'tst'
test.resources.srcDir 'tst-resources'
}
project.parent.tasks.findByName('uploadArchives').dependsOn(uploadArchives)
jacoco {
toolVersion = "0.8.2"
}
jacocoTestReport {
reports {
xml.enabled true
}
}
dokka {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}
task dokkaJavadocJar(type: Jar) {
classifier = 'javadoc'
group = BasePlugin.BUILD_GROUP
description = 'Assembles a jar archive containing the generated Javadoc API documentation of this project.'
from dokka
}
artifacts {
archives dokkaJavadocJar
}
extraArchive {
javadoc = false
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
testCompile "junit:junit:4.12"
}
tasks.withType(KotlinCompile).all {
kotlinOptions.jvmTarget = "1.8"
}
}