-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (77 loc) · 2.13 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}
group 'io.jactl'
version '2.2.0'
repositories {
mavenLocal()
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
dependencies {
implementation 'io.jactl:jactl:2.2.0'
implementation 'org.jline:jline:3.21.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
test {
useJUnitPlatform()
}
jar {
duplicatesStrategy 'exclude'
manifest {
attributes "Main-Class": "io.jactl.repl.Repl"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Jactl REPL'
description = 'Interactive Jactl shell'
url = 'https://github.com/jaccomoc/jactl-repl'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'jaccomoc'
name = 'James Crawford'
url = 'https://github.com/jaccomoc'
}
}
scm {
connection = "scm:git:git://github.com:jaccomoc/jactl-repl.git"
developerConnection = "scm:git:git://github.com:jaccomoc/jactl-repl.git"
url = 'https://github.com/jaccomoc/jactl-repl'
}
}
}
}
repositories {
maven {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials(PasswordCredentials) {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}