-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (68 loc) · 2.1 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
plugins {
id 'java'
}
apply plugin: "maven-publish"
apply plugin: "java"
sourceCompatibility = 14
group 'uk.co.innoxium.cybernize'
version '1.0-SNAPSHOT'
project.ext.sevenZipVersion = "16.02-2.01"
def repsyUser = "user"
def repsyPass = "passw"
repositories {
jcenter()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
implementation "org.apache.commons:commons-lang3:3.12.0"
implementation "commons-io:commons-io:2.11.0"
implementation "org.apache.commons:commons-math3:3.6.1"
implementation "org.ini4j:ini4j:0.5.4"
implementation "com.google.guava:guava:31.1-jre"
implementation 'com.google.code.gson:gson:2.10.1'
implementation "com.electronwill.night-config:core:3.6.6"
implementation "com.electronwill.night-config:toml:3.6.6"
implementation "net.sf.sevenzipjbinding:sevenzipjbinding:${project.ext.sevenZipVersion}"
implementation "net.sf.sevenzipjbinding:sevenzipjbinding-all-platforms:${project.ext.sevenZipVersion}"
}
tasks.register('sourcesJar', Jar) {
dependsOn classes
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
tasks.register('javadocJar', Jar) {
dependsOn javadoc
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
tasks.withType(Javadoc).configureEach {
failOnError false
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}
jar.finalizedBy javadocJar
jar.finalizedBy sourcesJar
publishing {
publications {
CybernizePublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'uk.co.innoxium.cybernize'
artifactId 'cybernize'
version '1.1.6'
}
}
repositories {
maven {
url "https://repo.repsy.io/mvn/innoxium/innoxium"
credentials {
username repsyUser
password repsyPass
}
}
}
}