forked from squark-io/swagger-combine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (89 loc) · 2.22 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
group 'io.squark'
version '0.2.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
sourceCompatibility = 1.11
targetCompatibility = 1.11
mainClassName = 'io.squark.swaggercombine.SwaggerCombine'
task(fatJar, type: Jar) {
manifest {
attributes 'Main-Class': mainClassName
}
archivesBaseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task(sourceJar, type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
task(javadocJar, type: Jar) {
from javadoc
classifier "javadoc"
}
def pomConfig = {
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 "erik"
name "Erik Håkansson"
email "[email protected]"
}
developer {
id "olegthelilfix"
name "Oleg Aleksandrov"
email "[email protected]"
}
}
scm {
url "https://github.com/squark-io/timewise.git"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation "io.swagger:swagger-parser:$swagger_parser_version"
implementation "io.swagger:swagger-core:$swagger_core_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation "junit:junit:$junit_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
implementation "io.swagger:swagger-parser:$swagger_parser_version"
implementation "io.swagger:swagger-core:$swagger_core_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation "junit:junit:$junit_version"
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}