-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
75 lines (66 loc) · 1.77 KB
/
build.gradle
File metadata and controls
75 lines (66 loc) · 1.77 KB
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
buildscript {
ext{
kotlin_version = '1.3.50'
coroutine_version = '1.3.0-M2'
bukkit_version = '1.12.2-R0.1-SNAPSHOT'
spikot_version = "4.0.0-SNAPSHOT"
}
repositories {
maven {
url 'https://maven.heartpattern.kr/repository/maven-public/'
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'maven-publish'
group 'kr.heartpattern'
version '4.0.0-SNAPSHOT'
repositories{
maven {
url 'http://maven.heartpattern.kr/repository/maven-public/'
}
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'com.google.code.gson:gson:2.8.5'
}
jar {
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs += '-XXLanguage:+InlineClasses'
freeCompilerArgs += '-Xuse-experimental=kotlin.Experimental'
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'SpikotClassLocator'
artifact kotlinSourcesJar
from project.components.java
}
}
repositories {
maven {
credentials {
username "${nexusUser}"
password "${nexusPassword}"
}
if (version.endsWith('SNAPSHOT')){
url 'https://maven.heartpattern.kr/repository/maven-public-snapshots/'
}
else{
url 'https://maven.heartpattern.kr/repository/maven-public-releases/'
}
}
}
}