-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (52 loc) · 1.29 KB
/
build.gradle
File metadata and controls
62 lines (52 loc) · 1.29 KB
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
plugins {
id 'java-library'
id "io.freefair.lombok" version "6.0.0-m2"
}
group 'dev.dotspace'
version '1.0.8'
allprojects {
ext {
junitVersion = "5.9.0";
}
apply plugin: 'java-library'
apply plugin: 'io.freefair.lombok'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
api ("org.jetbrains:annotations:23.0.0")
testImplementation ("org.junit.jupiter:junit-jupiter:${junitVersion}")
testRuntimeOnly ("org.junit.jupiter:junit-jupiter:${junitVersion}")
}
test {
useJUnitPlatform()
}
}
/**
* Update dependency version in README.md.
*/
tasks.register("updateDependencyInReadMe") {
println("Updating dependency version in README.md...")
// Update maven Version
ant.replaceregexp(match: '<version>([0-9\\.]+)</version>',
replace: "<version>${version}</version>",
flags: 'g',
byline: true) {
fileset(dir: '.', includes: 'README.md')
println("Updated mavem dependency verison.")
}
// Update gradle version
ant.replaceregexp(
match: 'dev\\.dotspace\\:common\\:([0-9\\.]+)',
replace: "dev.dotspace:common:${version}",
flags: 'g',
byline: true) {
fileset(dir: '.', includes: 'README.md')
println("Updated gradle dependency verison.")
}
}