-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
61 lines (52 loc) · 1.26 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
plugins {
id "java"
id "maven-publish"
id "com.jfrog.bintray" version "1.8.4"
id "org.jetbrains.kotlin.jvm" version "1.3.61"
}
def GROUP_ID = 'com.andreapivetta.kolor'
def ARTIFACT_ID = 'kolor'
def VERSION = '1.0.0'
group GROUP_ID
version VERSION
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "junit:junit:4.13"
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
groupId GROUP_ID
artifactId ARTIFACT_ID
version VERSION
}
}
}
bintray {
user = project.hasProperty('BINTRAY_USER') ? BINTRAY_USER : ''
key = project.hasProperty('BINTRAY_KEY') ? BINTRAY_KEY : ''
publications = ['MyPublication']
pkg {
repo = ARTIFACT_ID
name = ARTIFACT_ID
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/ziggy42/kolor.git'
version {
name = VERSION
released = new Date()
}
}
}