-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
108 lines (97 loc) · 3.02 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
/*
* The MIT License
*
* Copyright (c) 2021, Sebastian Sdorra
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
plugins {
id 'java-library'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
}
repositories {
jcenter()
}
dependencies {
api 'org.apache.shiro:shiro-core:1.7.1'
api 'org.junit.jupiter:junit-jupiter-api:5.6.2'
api 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
testImplementation 'org.assertj:assertj-core:3.19.0'
}
tasks.named('test') {
// Use junit platform for unit tests.
useJUnitPlatform()
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
artifactId = 'junit-shiro-extension'
pom {
name = 'JUnit Shiro Extension'
description = 'Simplify unit tests with JUnit 5 and Apache Shiro.'
url = 'https://github.com/sdorra/junit-shiro-extension'
inceptionYear = '2021'
licenses {
license {
name = 'The MIT license'
url = 'https://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'sdorra'
name = 'Sebastian Sdorra'
email = 's.sdorra@gmail.com'
timezone = 'Europe/Berlin'
}
}
scm {
url = 'https://github.com/sdorra/junit-shiro-extension'
connection = 'scm:git:git://github.com/sdorra/junit-shiro-extension.git'
developerConnection = 'scm:git:git://github.com/sdorra/junit-shiro-extension.git'
}
issueManagement {
system = "github"
url = 'https://github.com/sdorra/junit-shiro-extension/issues'
}
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications
}
nexusPublishing {
repositories {
sonatype()
}
}