-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
100 lines (78 loc) · 2.38 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
//file:noinspection DifferentKotlinGradleVersion
buildscript {
ext.kotlin_version = '1.4.32'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "java-library"
// id "application"
id "maven-publish"
id "signing"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "org.jetbrains.kotlin.jvm" version "1.4.32"
}
defaultTasks 'run'
repositories {
mavenCentral()
// mavenLocal()
}
// https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_plugin_and_dependency_management
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "com.offbytwo:docopt:0.6.0.20150202"
testCompile 'junit:junit:4.11'
testCompile "io.kotlintest:kotlintest:2.0.1"
}
java {
withJavadocJar()
withSourcesJar()
}
group = 'com.github.holgerbrandl'
version = '1.2.5'
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = "kscript-support-api"
description = 'A support API to simplify scripting with kscript'
url = 'https://github.com/holgerbrandl/kscript-support-api'
licenses {
license {
name = 'MIT'
url = 'https://github.com/holgerbrandl/kscript-support-api/blob/master/LICENSE'
}
}
scm {
connection = 'scm:git:github.com/holgerbrandl/kscript-support-api.git'
url = 'https://github.com/holgerbrandl/kscript-support-api.git'
}
developers {
developer {
id = 'holgerbrandl'
name = 'Holger Brandl'
email = '[email protected]'
}
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
snapshotRepositoryUrl = uri(project.properties["sonatypeStagingProfileId"])
username = project.properties["ossrhUsername"]
password = project.properties["ossrhPassword"]
}
}
}
signing {
sign publishing.publications.mavenJava
}