-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
106 lines (93 loc) · 2.96 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
plugins {
id 'idea'
id 'java-library'
id 'com.adarshr.test-logger' version '2.1.0'
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
group 'dev.keva'
version '1.0.1'
dependencies {
// SLF4J as a facade
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'org.reflections:reflections:0.10.2'
// JUnit
testImplementation('org.junit.jupiter:junit-jupiter:5.8.2')
testImplementation 'ch.qos.logback:logback-classic:1.2.8'
testImplementation 'ch.qos.logback:logback-core:1.2.8'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
publishing {
repositories {
maven {
def releasesRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = project.findProperty("sonatypeUsername") ?: System.getenv("sonatypeUsernamer")
password = project.findProperty("sonatypePassword") ?: System.getenv("sonatypePassword")
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId = 'keva-ioc'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Keva IoC'
description = 'Fast, lightweight, Spring like, annotation driven IoC framework'
url = 'https://ioc.keva.dev'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/keva-dev/keva-ioc/blob/master/LICENSE'
}
}
developers {
developer {
id = 'tuhuynh27'
name = 'Tu Huynh'
email = 'huynhminhtufu@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/keva-dev/keva-ioc.git'
developerConnection = 'scm:git:ssh://github.com:keva-dev/keva-ioc.git'
url = 'https://github.com/keva-dev/keva-ioc'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8