-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
137 lines (118 loc) · 3.79 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/*
* 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.1.1/userguide/java_library_plugin.html
*/
buildscript {
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
}
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
// Apply the plugins to add support for Spring Boot
id 'org.springframework.boot' version '2.5.0'
id 'io.spring.dependency-management' version '1.0.7.RELEASE'
// Apply the plugin to add support for jacoco test coverage report
id 'jacoco'
id 'maven-publish'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'org.apache.logging.log4j') {
details.useVersion '2.16.0'
}
}
}
group 'org.ga4gh'
version '0.5.7'
repositories {
mavenCentral()
mavenLocal()
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
implementation 'org.apache.logging.log4j:log4j-to-slf4j:2.15.0'
implementation 'com.google.guava:guava:28.1-jre'
implementation 'org.springframework.boot:spring-boot-starter-web:2.5.0'
implementation 'commons-cli:commons-cli:1.4'
implementation 'commons-io:commons-io:2.8.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.12.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.4'
implementation 'org.hibernate:hibernate-core:5.4.11.Final'
implementation 'org.springframework:spring-orm:5.1.6.RELEASE'
implementation 'org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final'
implementation 'org.xerial:sqlite-jdbc:3.8.11.2'
testImplementation 'org.testng:testng:7.0.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.5.0'
testImplementation 'org.springframework.security:spring-security-test'
}
jar {
enabled = true
}
bootJar {
mainClassName = 'org.ga4gh.starterkit.common.demo.DemoServer'
}
test {
// Use TestNG for unit tests
useTestNG()
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
publishing {
publications {
myPublication(MavenPublication) {
from components.java
// artifact sourceJar
pom {
name = "ga4gh-starter-kit-common"
description = "Common utils library for GA4GH Starter Kit web services"
url = "https://github.com/ga4gh/ga4gh-starter-kit-common"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "jb-adams"
name = "Jeremy Adams"
email = "jeremy.adams@ga4gh.org"
}
}
scm {
connection = "scm:https://github.com/ga4gh/ga4gh-starter-kit-common.git"
developerConnection = "scm:git://github.com/ga4gh/ga4gh-starter-kit-common.git"
url = "https://github.com/ga4gh/ga4gh-starter-kit-common"
}
}
}
}
}
signing {
sign publishing.publications.myPublication
}
nexusPublishing {
packageGroup = "org.ga4gh"
repositories {
sonatype()
}
}