-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
85 lines (74 loc) · 2.27 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
plugins {
id 'scala'
id 'idea'
id 'maven-publish'
id 'maven'
id 'signing'
}
group 'fun.mactavish'
version '0.6.0'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.scala-lang', name: 'scala-library', version: '2.13.4'
implementation group: 'net.sf.sevenzipjbinding', name: 'sevenzipjbinding', version: '16.02-2.01'
implementation group: 'net.sf.sevenzipjbinding', name: 'sevenzipjbinding-all-platforms', version: '16.02-2.01'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.7.0'
}
test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId = 'sevenz4s'
from components.java
pom {
name = 'SevenZ4S'
description = 'A 7Z compression library for Scala.'
url = 'https://github.com/gonearewe/SevenZ4S'
licenses {
license {
name = 'GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1'
url = 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html'
}
}
developers {
developer {
id = 'gonearewe'
name = 'John Mactavish'
email = '[email protected]'
}
}
scm {
connection = 'https://github.com/gonearewe/SevenZ4S.git'
url = 'https://github.com/gonearewe/SevenZ4S'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username "abcde"
password "xxxxx"
}
}
}
}
signing {
sign publishing.publications.maven
}