-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
90 lines (75 loc) · 2.17 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
plugins {
id 'groovy'
id 'jacoco'
id 'project-report'
id 'signing'
id 'ru.vyarus.java-lib' version '2.4.0'
id 'ru.vyarus.github-info' version '2.0.0'
id 'ru.vyarus.quality' version '4.9.0'
id 'net.researchgate.release' version '3.0.2'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
id 'com.github.ben-manes.versions' version '0.51.0'
}
sourceCompatibility = 1.8
wrapper {
gradleVersion = '7.6.1'
}
repositories { mavenLocal(); mavenCentral() }
dependencies {
implementation 'com.google.inject:guice:5.1.0'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
optional 'org.javassist:javassist:3.30.2-GA'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.slf4j:slf4j-nop:1.7.36'
}
group = 'ru.vyarus'
description = 'Guice annotations extensions'
github {
user = 'xvik'
license = 'MIT'
}
pom {
developers {
developer {
id 'xvik'
name 'Vyacheslav Rusakov'
email '[email protected]'
}
}
}
javaLib {
// java 9 auto module name
autoModuleName = 'ru.vyarus.guice.annotation.extensions'
// don't publish gradle metadata artifact
withoutGradleMetadata()
}
nexusPublishing {
repositories {
sonatype {
username = findProperty('sonatypeUser')
password = findProperty('sonatypePassword')
}
}
}
// skip signing for jitpack (snapshots)
tasks.withType(Sign) {onlyIf { !System.getenv('JITPACK') }}
// Required signing properties for release: signing.keyId, signing.password and signing.secretKeyRingFile
// (https://docs.gradle.org/current/userguide/signing_plugin.html#sec:signatory_credentials)
release.git.requireBranch.set('master')
afterReleaseBuild {
dependsOn = ['publishToSonatype',
'closeAndReleaseSonatypeStagingRepository']
doLast {
logger.warn "RELEASED $project.group:$project.name:$project.version"
}
}
test {
//useJUnitPlatform()
testLogging {
events 'skipped', 'failed'
exceptionFormat 'full'
}
maxHeapSize = '512m'
}
dependencyUpdates.revision = 'release'