forked from smtadmin/spacelibs-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
93 lines (78 loc) · 2.62 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.0/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
id 'jacoco'
id 'org.springframework.boot' version '2.4.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id "io.freefair.lombok" version '5.3.0'
id 'maven-publish'
id 'signing'
}
group = 'com.siliconmtn'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
archivesBaseName = "spacelibs.java"
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
dependencies {
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:28.0-jre'
implementation 'org.apache.commons:commons-lang3:3.11'
implementation 'org.apache.commons:commons-io:1.3.2'
implementation 'commons-beanutils:commons-beanutils-core:1.8.3'
implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.16'
implementation 'org.mockito:mockito-core:3.7.0'
implementation 'org.mockito:mockito-inline:3.7.0'
implementation 'org.apache.logging.log4j:log4j-api:2.14.0'
implementation 'org.apache.logging.log4j:log4j-core:2.14.0'
implementation 'org.apache.poi:poi:5.0.0'
implementation 'org.apache.poi:poi-ooxml:5.0.0'
// Spring Boot (Starters -> https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using-boot-starter)
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
// Testing
testImplementation('org.springframework.boot:spring-boot-starter-test'){
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.security:spring-security-test'
}
// Prevent Spring Boot from looking for a main()
bootJar {
enabled = false
}
jar {
enabled = true
}
test {
finalizedBy jacocoTestReport // report is always generated after tests run
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
}
dependsOn test
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}