-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
76 lines (68 loc) · 1.99 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
plugins {
id 'java-library'
id 'maven-publish'
id "com.github.spotbugs" version "4.7.1"
}
group = 'gr.james'
version = '0.28'
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withJavadocJar()
withSourcesJar()
}
spotbugs {
spotbugsTest.enabled = false
effort = "max"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'Random Sampling'
description = 'A collection of algorithms in Java 8 for the problem of random sampling with a reservoir'
url = 'https://github.com/gstamatelat/random-sampling'
licenses {
license {
name = 'The MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'gstamatelat'
name = 'Giorgos Stamatelatos'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/gstamatelat/random-sampling.git'
developerConnection = 'scm:git:[email protected]:gstamatelat/random-sampling.git'
url = 'https://github.com/gstamatelat/random-sampling'
}
}
}
}
repositories {
maven {
url = uri("${buildDir}/publishing-repository")
}
}
}
wrapper {
gradleVersion = '7.5.1'
}
javadoc {
doLast {
new File(destinationDir, 'stylesheet.css').append(file('src/javadoc/stylesheet.css').text)
new File(destinationDir, 'script.js').append(file('src/javadoc/script.js').text)
}
options.overview('src/javadoc/overview.html')
}
dependencies {
testImplementation 'junit:junit:4.13.2'
}