-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
125 lines (107 loc) · 3.45 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
124
125
apply plugin: 'idea'
apply plugin: 'maven-publish'
buildscript {
ext.kotlin_version = '1.8.22'
ext.kotlinxcoroutine_version = '1.7.3'
ext.kotlinlogging_version = '1.8.3'
ext.protobufgradle_version = '0.9.4'
ext.grpc_version = '1.31.1'
ext.tcnative_version = '2.0.48.Final'
ext.jackson_version = '2.9.8'
ext.protoc_version = '3.10.0'
ext.kroto_version = '0.6.1'
ext.slf4j_version = '1.7.36'
ext.log4jslf4j_version = '2.20.0'
ext.junit5_version = '5.6.2'
ext.mockk_version = '1.10.0'
ext.assertj_version = '3.17.2'
ext.awaitility_version = '4.0.3'
ext.clikt_version = '2.8.0'
ext.doxygen_version = '0.6'
ext.repos = {
mavenLocal()
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
repositories repos
dependencies {
classpath group: 'org.jetbrains.kotlin', name: 'kotlin-gradle-plugin', version: "$kotlin_version"
classpath group: 'com.google.protobuf', name: 'protobuf-gradle-plugin', version: "$protobufgradle_version"
classpath group: 'org.ysb33r.gradle', name: 'doxygen', version: "$doxygen_version"
}
if (project.hasProperty("executeAllTests") && project.findProperty("executeAllTests").toBoolean()) {
gradle.startParameter.continueOnFailure = true
}
}
ext {
commonPom = {
licenses {
license {
name = "The Apache Software License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
scm {
connection = 'scm:git:https://github.com/blachris/coio.git'
developerConnection = 'scm:git:https://github.com/blachris/coio.git'
url = 'https://github.com/blachris/coio'
}
developers {
developer {
id = 'blachris'
name = 'Christopher Schwarzer'
email = '[email protected]'
}
}
}
}
allprojects {
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'signing'
group 'io.github.blachris'
version = '0.9.0'
if (!project.hasProperty("release")) {
version += '-SNAPSHOT'
}
repositories repos
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
jar {
manifest {
attributes(
'Implementation-Version': rootProject.version,
'Implementation-Title': rootProject.name,
'Created-By': "Gradle ${gradle.gradleVersion}",
'Build-Jdk': "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS': "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
)
}
}
test {
useJUnitPlatform()
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar, javadocJar
}
}