-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
136 lines (114 loc) · 3.91 KB
/
build.gradle
File metadata and controls
136 lines (114 loc) · 3.91 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
plugins {
id 'java'
id 'maven'
id 'signing'
id 'com.github.hierynomus.license' version '0.14.0'
id 'eclipse'
id 'com.github.johnrengelman.shadow' version '5.0.0'
}
version = '1.80'
group = 'nl.junglecomputing'
archivesBaseName = 'smartsockets'
defaultTasks 'jar', 'shadowJar'
// Prevent warning about POM relocation not being fully supported
configurations.all {
resolutionStrategy {
force 'xml-apis:xml-apis:1.4.01'
}
}
repositories {
// mavenLocal()
mavenCentral()
}
dependencies {
compile group: 'nl.junglecomputing', name: 'touchgraph', version: '1.58'
compile group: 'org.apache.sshd', name: 'sshd-mina', version: '2.2.0'
compile group: 'net.i2p.crypto', name: 'eddsa', version: '0.3.0'
compile group: 'nl.junglecomputing', name: 'sbbi-upnplib', version: '1.0.4'
compile group: 'de.javawi.jstun', name: 'jstun', version: '0.7.4'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile group: 'commons-jxpath', name: 'commons-jxpath', version: '1.1'
compile group: 'log4j', name: 'log4j', version: '1.2.13'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.21'
}
signing {
sign configurations.archives
}
license {
ext.copyright_year = 2010
ext.copyright_owner = 'Vrije Universiteit'
header rootProject.file('gradle/HEADER')
strictCheck true
excludes(["**/log4j.properties"])
mapping {
// IntelliJ IDEA gives "Dangling Javadoc comment." warning when default JAVADOC_STYLE is used,
// so switch to comment style
java = 'SLASHSTAR_STYLE'
}
}
licenseFormat.description = "Applies the license found in the header file in files missing the header"
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
tasks.withType(Jar) {
destinationDir = file("$rootDir/lib")
}
task copyRuntimeLibs(type: Copy) {
into "lib"
from configurations.runtime
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'SmartSockets'
packaging 'jar'
description 'Smartsockets is an open source communication library that automatically discovers many of the connectivity problems and solves them with as little support from the user as possible.'
url 'https://github.com/junglecomputing/smartsockets'
scm {
connection 'scm:git:git://github.com/junglecomputing/smartsockets.git'
developerConnection 'scm:git:ssh://github.com:junglecomputing/smartsockets.git'
url 'https://github.com/junglecomputing/smartsockets/tree/master'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'Jason Maassen'
organization = 'Netherlands escience Center'
url = 'https://www.esciencecenter.nl/team/dr-jason-maassen/'
}
}
}
}
}
}
shadowJar {
dependencies {
exclude(dependency('org.slf4j:slf4j-api'))
exclude(dependency('log4j:log4j'))
}
}