forked from ivanr/qlue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
120 lines (92 loc) · 3.82 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
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
plugins {
id 'java-library'
id 'maven-publish'
}
group = 'com.webkreator'
version = '3.1.5'
compileJava {
options.compilerArgs += ["-parameters"]
}
repositories {
mavenCentral()
}
dependencyLocking {
lockAllConfigurations()
}
// The dependencies are locked; to update the locks, run: ./gradlew dependencies --write-locks
dependencies {
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.30'
// https://mvnrepository.com/artifact/commons-cli/commons-cli
implementation group: 'commons-cli', name: 'commons-cli', version: '1.4'
// https://mvnrepository.com/artifact/commons-codec/commons-codec
implementation group: 'commons-codec', name: 'commons-codec', version: '1.14'
// https://mvnrepository.com/artifact/org.apache.commons/commons-email
api group: 'org.apache.commons', name: 'commons-email', version: '1.5'
// https://mvnrepository.com/artifact/javax.mail/javax.mail-api
implementation group: 'javax.mail', name: 'javax.mail-api', version: '1.6.2'
// https://mvnrepository.com/artifact/it.sauronsoftware.cron4j/cron4j
implementation group: 'it.sauronsoftware.cron4j', name: 'cron4j', version: '2.2.5'
// https://mvnrepository.com/artifact/org.apache.velocity/velocity
implementation group: 'org.apache.velocity', name: 'velocity', version: '1.7'
constraints {
implementation('commons-collections:commons-collections:3.2.2') {
because 'https://app.snyk.io/vuln/SNYK-JAVA-COMMONSCOLLECTIONS-30078'
}
}
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10'
// https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator
implementation group: 'org.hibernate.validator', name: 'hibernate-validator', version: '6.0.20.Final'
// https://mvnrepository.com/artifact/org.glassfish/javax.el
implementation group: 'org.glassfish', name: 'javax.el', version: '3.0.1-b11'
// https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api
compileOnly group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
// https://mvnrepository.com/artifact/junit/junit
testImplementation group: 'junit', name: 'junit', version: '4.13'
// https://mvnrepository.com/artifact/org.mockito/mockito-all
testImplementation group: 'org.mockito', name: 'mockito-core', version: '5.6.0'
// https://mvnrepository.com/artifact/org.slf4j/slf4j-simple
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.30'
// https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api
testImplementation group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
}
sourceSets {
main {
java.srcDirs = ["src/main/java"]
resources.srcDirs = ["src/main/resources"]
}
test {
java.srcDirs = ["src/test/java"]
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
//archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/hardenize/qlue"
credentials {
// https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry
username = System.getenv("GITHUB_PACKAGES_USERNAME")
password = System.getenv("GITHUB_PACKAGES_PASSWORD")
}
}
}
}