-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbuild.gradle
71 lines (65 loc) · 1.91 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
buildscript {
ext.kotlin_version = '1.2.30'
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "com.jfrog.bintray" version "1.7.3"
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
group 'wu.seal'
version '1.1.2'
repositories {
jcenter()
mavenCentral()
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
classifier = 'javadoc'
}
artifacts {
archives javadocJar
archives sourcesJar
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
user = properties.getProperty("BINTRAY_USER")
key = properties.getProperty("BINTRAY_KEY")
configurations = ['archives']
dryRun = false //[Default: false] Whether to run this as dry-run, without deploying
publish = true //[Default: false] Whether version should be auto published after an upload
override = true //[Default: false] Whether to override version artifacts already published
pkg {
repo = 'maven'
name = 'wu.seal.jvm.kotlinreflecttools'
userOrg = 'wusealking'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/wuseal/Kotlin-Reflect-Tools-For-JVM'
version {
name = '1.1.2'
desc = 'update new version'
released = new Date()
vcsTag = '1.1.2'
}
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: '1.1.51'
testCompile "com.winterbe:expekt:0.5.0"
}