-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (85 loc) · 2.34 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
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'java-library'
id 'maven-publish'
id 'signing'
}
archivesBaseName = 'Rtflc'
group = 'net.termer.rtflc'
version = '1.3'
jar {
manifest {
attributes 'Main-Class': 'net.termer.rtflc.Main'
}
}
repositories {
jcenter()
}
dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
// Application dependencies
implementation 'net.lingala.zip4j:zip4j:2.5.0'
implementation 'org.json:json:20190722'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'Rtflc'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Rtflc'
description = 'Advanced and high(er) permformance Rtfl runtime and compiler'
url = 'https://github.com/termermc/rtflc'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'termer'
name = 'Michael Termer'
email = 'termer@protonmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/termermc/rtflc.git'
developerConnection = 'scm:git:ssh://github.com/termermc/rtflc.git'
url = 'https://github.com/termermc/rtflc'
}
}
}
}
repositories {
maven {
name = 'OSSRH'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = nexusUsername
password = nexusPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}