-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbuild.gradle
115 lines (102 loc) · 3.15 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
plugins {
id 'java-library'
id 'jacoco'
id 'signing'
id 'maven-publish'
id 'io.freefair.lombok' version '8.12'
id 'org.sonarqube' version '6.0.1.5171'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
group = 'com.globalreachtech'
version = '2.1.1-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-api:2.24.3'
implementation 'io.netty:netty-codec:4.1.117.Final'
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.2'
testImplementation 'org.apache.logging.log4j:log4j-core:2.24.3'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
testImplementation 'org.mockito:mockito-junit-jupiter:5.15.2'
testImplementation 'org.awaitility:awaitility:4.2.2'
testImplementation 'org.assertj:assertj-core:3.27.3'
testImplementation('net.jradius:jradius-core:1.1.5') {
transitive = false // for reference implementation of hashing utilities
}
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
}
}
sonarqube {
properties {
property "sonar.projectKey", "globalreachtech_tinyradius-netty"
property "sonar.organization", "globalreachtech"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.exclusions", "'**/AttributeType*','**/PacketType*'"
}
}
test {
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
useJUnitPlatform()
}
tasks.register('javadocJar', Jar) {
archiveClassifier = 'javadoc'
from javadoc
}
tasks.register('sourcesJar', Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
nexusPublishing {
repositories {
sonatype()
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
afterEvaluate {
artifact sourcesJar
artifact javadocJar
}
pom {
name = project.name
description = 'TinyRadius-Netty is a small Java Radius library'
url = 'https://github.com/globalreachtech/tinyradius-netty'
licenses {
license {
name = 'GNU Lesser General Public License, version 2.1'
url = 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html'
}
}
developers {
developer {
id = "horaceli"
url = "https://github.com/horaceli"
}
developer {
id = 'globalreachtech'
organizationUrl = 'https://www.globalreachtech.com/'
}
}
scm {
url = 'https://github.com/globalreachtech/tinyradius-netty'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}