-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (91 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
92
93
94
95
96
97
98
99
100
101
plugins {
id "java-library"
id "maven-publish"
id "signing"
id "com.github.jk1.dependency-license-report" version "1.3"
id "io.snyk.gradle.plugin.snykplugin" version "0.4"
}
group = "com.marklogic"
version = "1.0.1"
java {
sourceCompatibility = "8"
targetCompatibility = "8"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework:spring-beans:5.3.22'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc
}
javadoc.failOnError = false
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
publishing {
publications {
mainJava(MavenPublication) {
pom {
name = "${group}:${project.name}"
description = "Utility classes for MarkLogic Content Pump"
packaging = "jar"
url = "https://github.com/marklogic-community/${project.name}"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "marklogic"
name = "MarkLogic Github Contributors"
email = "general@developer.marklogic.com"
organization = "MarkLogic"
organizationUrl = "https://www.marklogic.com"
}
}
scm {
url = "git@github.com:marklogic-community/${project.name}.git"
connection = "scm:git@github.com:marklogic-community/${project.name}.git"
developerConnection = "scm:git@github.com:marklogic-community/${project.name}.git"
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
// See https://github.com/snyk/gradle-plugin for more information
snyk {
//arguments = '--all-sub-projects'
severity = 'low'
api = snykToken
autoDownload = true
autoUpdate = true
}