-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (92 loc) · 3.92 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
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'maven'
apply plugin: 'maven-publish'
import org.gradle.util.VersionNumber
sourceCompatibility = '1.8'
version = '0.3.0-SNAPSHOT'
ext.xbupVersion = '0.3.0-SNAPSHOT'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
if (!hasProperty('mainClass')) {
ext.mainClass = ''
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
doFirst {
options.fork = true
if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
if (VersionNumber.parse(gradle.gradleVersion) >= VersionNumber.parse('5.0')) {
options.bootstrapClasspath = files("${System.properties['java.home']}/lib/rt.jar", "$File.pathSeparator${System.properties['java.home']}/jre/lib/jsse.jar")
} else {
options.bootClasspath = "${System.properties['java.home']}/lib/rt.jar"
options.bootClasspath += "$File.pathSeparator${System.properties['java.home']}/jre/lib/jsse.jar"
}
}
}
}
// Disable tests on build
if (!gradle.startParameter.taskNames.any {it.endsWith("test")}) {
tasks.withType(Test) {enabled = false}
}
repositories {
flatDir {
dirs "../../lib"
}
mavenLocal()
mavenCentral()
}
dependencies {
implementation "org.exbin.xbup:xbup-core:${xbupVersion}"
implementation "org.exbin.xbup:xbup-catalog:${xbupVersion}"
providedCompile 'javax.servlet:javax.servlet-api:4.0.1'
providedCompile 'javax.servlet.jsp:javax.servlet.jsp-api:2.3.3'
providedCompile 'org.eclipse.persistence:org.eclipse.persistence.jpa.modelgen.processor:2.7.4'
implementation 'org.glassfish:javax.faces:2.2.4'
implementation 'org.richfaces.core:richfaces-core-impl:4.3.7.Final'
implementation 'org.richfaces.ui:richfaces-components-ui:4.3.7.Final'
implementation 'org.springframework:spring-core:3.2.3.RELEASE'
implementation 'org.springframework:spring-beans:3.2.3.RELEASE'
implementation 'org.springframework:spring-context:3.2.3.RELEASE'
implementation 'org.springframework:spring-context-support:3.2.3.RELEASE'
implementation 'org.springframework:spring-instrument:3.2.3.RELEASE'
implementation 'org.springframework:spring-instrument-tomcat:3.2.3.RELEASE'
implementation 'org.springframework:spring-jdbc:3.2.3.RELEASE'
implementation 'org.springframework:spring-orm:3.2.3.RELEASE'
implementation 'org.springframework:spring-web:3.2.3.RELEASE'
implementation 'javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1'
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
implementation 'org.glassfish.jaxb:jaxb-runtime:2.4.0-b180830.0438'
// implementation 'com.sun.xml.bind:jaxb-impl:2.4.0-b180830.0438'
implementation 'org.glassfish.web:javax.servlet.jsp.jstl:1.2.2'
implementation 'org.mariadb.jdbc:mariadb-java-client:2.6.2'
implementation 'org.eclipse.persistence:eclipselink:2.7.7'
compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
compileOnly 'javax.persistence:persistence-api:1.0.2'
compileOnly 'org.eclipse.persistence:javax.persistence:2.2.1'
if (JavaVersion.current() != JavaVersion.VERSION_1_8) {
// Workaround for @javax.annotation.Generated
// see: https://github.com/grpc/grpc-java/issues/3633
implementation("javax.annotation:javax.annotation-api:1.3.2")
}
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
}
war {
from 'src/webapp'
}
task createPom {
pom {
project {
groupId 'org.exbin.xbup.web'
artifactId 'xbcatalogweb'
version "${version}"
packaging 'war'
licenses {
license {
name 'Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
}
}.writeTo("pom.xml")
}