-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
67 lines (53 loc) · 1.51 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
buildscript {
ext.kotlin_version = "1.2.21"
ext.junit_version = "5.0.3"
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7"
}
}
group "org.celtric.kotlin"
version "0.1.4"
apply plugin: "kotlin"
apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
}
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
bintray {
user = project.hasProperty("bintray.user") ? project.property("bintray.user") : null
key = project.hasProperty("bintray.apikey") ? project.property("bintray.apikey") : null
publications = ["mavenPublication"]
pkg {
repo = "maven"
name = "kotlin-html"
version {
attributes = ["gradle-plugin": "com.use.less:com.use.less.gradle:gradle-useless-plugin"]
}
}
}