-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
129 lines (103 loc) · 2.89 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
plugins {
id "java"
id "eclipse"
id "maven-publish"
id "com.github.ben-manes.versions" version "0.49.0"
id "com.gradle.plugin-publish" version "1.2.1"
id "synapticloop.copyrightr" version "1.3.1"
}
version = findProperty("h2zero.version")
group = 'synapticloop'
tasks.withType(Javadoc).all { enabled = false }
allprojects {
tasks.withType(Javadoc).all { enabled = false }
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://jitpack.io"
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
dependencies {
implementation "com.github.synapticloop:templar:1.5.5"
implementation "org.json:json:20231013"
implementation "com.mchange:c3p0:0.9.5.5"
implementation "commons-validator:commons-validator:1.7"
implementation "org.slf4j:slf4j-api:1.7.26"
implementation "javax.mail:javax.mail-api:1.6.2"
implementation "org.apache.ant:ant:1.10.14"
compileOnly gradleApi()
testImplementation "junit:junit:4.13.2"
testImplementation "org.mockito:mockito-core:5.6.0"
testImplementation "com.github.stefanbirkner:system-rules:1.17.1"
// this is for the tests
testImplementation('com.mchange:c3p0:0.9.5.5')
testImplementation('com.mchange:mchange-commons-java:0.2.20')
testImplementation('org.xerial:sqlite-jdbc:3.42.0.1')
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force "junit:junit:4.13.2",
"com.mchange:mchange-commons-java:0.2.20"
}
}
jar {
manifest {
attributes(
"Main-Class": "synapticloop.h2zero.Main",
"Implementation-Version": version
)
}
}
test {
include "**/*Test.class"
maxParallelForks = 1
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId "synapticloop"
artifactId "h2zero"
version version
from components.java
}
}
}
/*
* The Gradle Plugin Publisher
*/
gradlePlugin {
website = "https://github.com/synapticloop/h2zero"
vcsUrl = "https://github.com/synapticloop/h2zero"
plugins {
h2zeroPlugin {
id = "synapticloop.h2zero"
implementationClass = "synapticloop.h2zero.plugin.gradle.H2ZeroPlugin"
displayName = "Synapticloop Gradle h2zero plugin"
description = "lightweight ORM Java code generator for SQL databases: mysql, sqlite3, postgresql, and cockroach - this utilises the templar templating language"
tags = ["h2zero", "ORM", "generator"]
}
}
}
copyrightr {
dryRun = false
copyrightHolder = "synapticloop"
includes = [
"src/**/*.java",
"src/**/*.groovy"
]
excludes = [
"src/test/java/**/*.java",
"**/*.class"
]
onlyReplaceFirst = true
yearSeparator = " - "
failOnMissing = false
}