-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
66 lines (58 loc) · 2.61 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
plugins {
id "io.spring.dependency-management" version "1.0.8.RELEASE"
id 'pl.allegro.tech.build.axion-release' version '1.10.2'
id "com.bmuschko.nexus" version "2.3.1" apply false
id "io.codearte.nexus-staging" version "0.21.1" apply false
id 'com.adarshr.test-logger' version '2.0.0'
id 'signing'
}
apply plugin: "pl.allegro.tech.build.axion-release"
description "Native Criteria Root"
allprojects {
repositories {
mavenCentral()
jcenter()
maven {
url 'https://repo.spring.io/libs-snapshot'
}
}
apply plugin:'java'
apply plugin: 'maven'
apply plugin: "io.spring.dependency-management"
apply plugin: 'com.adarshr.test-logger'
if (project.hasProperty('central')) {
apply from: project.rootDir.path + '/gradle/mavenCentral.gradle'
}
group "com.github.pnowy.nc"
version scmVersion.version
dependencyManagement {
dependencies {
// CORE MODULE
dependency group: 'org.hibernate', name: 'hibernate-core', version: '5.6.10.Final'
dependency group: 'com.google.guava', name: 'guava', version: '31.1-jre'
dependency group: 'org.slf4j', name: 'slf4j-api', version: '1.7.36'
// SPRING MODULE
dependency group: 'org.springframework.data', name: 'spring-data-commons', version: '2.3.9.RELEASE'
dependency group: 'org.springframework', name: 'spring-jdbc', version: '5.2.22.RELEASE'
// CORE TEST DEPENDENCIES
dependency group: 'junit', name: 'junit', version: '4.13.2'
dependency group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.11'
dependency group: 'org.assertj', name: 'assertj-core', version: '3.23.1'
// DATABASES DRIVERS FOR TESTING
dependency group: 'org.postgresql', name: 'postgresql', version: '42.4.0'
dependency group: 'net.sourceforge.jtds', name: 'jtds', version: '1.3.1'
dependency group: 'mysql', name: 'mysql-connector-java', version: '8.0.30'
}
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:2.3.12.RELEASE'
}
}
testlogger {
theme 'mocha'
}
}
subprojects {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileJava.options.encoding = 'UTF-8'
}