-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
137 lines (113 loc) · 3.49 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
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 'co.riiid.gradle' version '0.4.2'
id 'synapticloop.copyrightr' version '1.3.1'
}
group = 'synapticloop'
archivesBaseName = 'h2zero'
description = """lightweight ORM generator for mysql/sqlite, java with extensions for taglibs and routemaster"""
version = '5.0.0'
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()
//// compileOnly 'synapticloop:templar:1.5.0'
// compileOnly 'org.json:json:20180130'
// compileOnly 'org.apache.ant:ant:1.10.6'
// compileOnly 'com.mchange:c3p0:0.9.5.4'
// compileOnly 'commons-validator:commons-validator:1.6'
// compileOnly 'org.slf4j:slf4j-api:1.7.25'
// compileOnly 'org.apache.logging.log4j:log4j-slf4j-impl:2.12.1'
// compileOnly 'org.apache.logging.log4j:log4j-core:2.12.1'
//
// compileOnly 'javax.mail:javax.mail-api:1.6.2'
// compileOnly 'com.github.stefanbirkner:system-rules:1.17.1'
// testRuntimeOnly 'junit:junit:4.12'
// testRuntimeOnly 'org.mockito:mockito-all:1.10.19'
// testRuntimeOnly 'com.github.stefanbirkner:system-rules:1.16.1'
// testRuntimeOnly 'mysql:mysql-connector-java:8.0.33'
// testRuntimeOnly 'org.xerial:sqlite-jdbc:3.28.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.6.0'
testImplementation 'com.github.stefanbirkner:system-rules:1.17.1'
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force 'junit:junit:4.13.2'
}
}
jar {
manifest {
attributes(
"Main-Class": "synapticloop.h2zero.Main",
"Implementation-Version": version
)
}
}
test {
include '**/*Test.class'
maxParallelForks = 1
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId 'synapticloop'
artifactId archivesBaseName
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
}