-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
72 lines (58 loc) · 1.42 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
buildscript {
ext.project_name = 'OkReflect'
}
plugins {
id 'java'
id 'maven'
id 'org.jetbrains.kotlin.jvm' version '1.3.40'
}
kotlin {
experimental {
coroutines "enable"
}
}
group 'com.github.zeshaoaaa'
version '0.1.5'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-M2'
// Libraries that use for distribution
// implementation "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
// To specify a license in the pom:
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
uploadArchives {
repositories.mavenDeployer {
// 本地仓库路径
repository(url: "file:///users/oushaoze/.m2/repository/")
// 唯一标识
pom.groupId = "local.okreflect"
// 项目名称
pom.artifactId = "OkReflect"
// 版本号
pom.version = "0.1.3"
}
}