-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
125 lines (103 loc) · 3.2 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.30'
id 'org.jetbrains.kotlin.plugin.spring' version '1.3.30'
id 'org.springframework.boot' version '2.1.4.RELEASE'
id 'com.jfrog.bintray' version '1.8.4'
}
allprojects {
group = 'io.zensoft.hootka'
version = '1.0.0'
repositories {
mavenCentral()
}
}
ext {
kotlinVersion = '1.3.30'
nettyVersion = '4.1.21.Final'
}
subprojects {
apply plugin: 'maven'
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
sourceCompatibility = JavaVersion.VERSION_1_8
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile("org.springframework.boot:spring-boot-configuration-processor")
compile('org.springframework.security:spring-security-crypto')
compile("io.netty:netty-all:${nettyVersion}")
compile("org.freemarker:freemarker:2.3.23")
// Utilities
compile('com.github.ben-manes.caffeine:caffeine:2.6.2')
compile('org.apache.commons:commons-lang3:3.1')
compile('commons-io:commons-io:2.6')
// Kotlin
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlinVersion}")
compile("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
compile("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.4.1")
compile('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.3')
// Validation
compile("javax.validation:validation-api:2.0.0.Final")
compile("javax.el:javax.el-api:3.0.0")
compile("org.glassfish:javax.el:3.0.0")
compile("org.hibernate.validator:hibernate-validator:6.0.1.Final")
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// Jar
jar {
manifest {
attributes("Implementation-Version": version)
}
}
bootJar.enabled = false
jar.enabled = true
// Kotlin
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
}
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
artifacts {
archives sourcesJar
}
bintray {
user = System.getenv("BINTRAY_USER") ?: System.properties['bintrayUser']
key = System.getenv("BINTRAY_KEY") ?: System.properties['bintrayKey']
configurations = ['archives']
pkg {
repo = "maven"
name = project.name
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/zensoftio/hootka.git'
}
}
}
bintrayUpload.enabled = false
bootJar.enabled = false