-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
86 lines (77 loc) · 2.43 KB
/
build.gradle
File metadata and controls
86 lines (77 loc) · 2.43 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugins {
id 'java'
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '1.3.0'
}
group = 'com.lyrieek.eg'
version = '1.6'
description = 'Entity Generator'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
compileJava {
options.compilerArgs << "-parameters"
}
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
include '**/*.class'
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
include '**/*.yml'
include '**/*.properties'
}
}
}
gradlePlugin {
website = 'https://github.com/lyrieek/entity-generator'
vcsUrl = 'https://github.com/lyrieek/entity-generator.git'
plugins {
entityGenerator {
id = 'com.lyrieek.eg'
displayName = 'Entity Generator'
description = 'The Entity Generator is a tool designed to streamline the process of creating entity classes for database operations. It generates cache files from database schemas, allows developers to annotate these cache files, and ultimately produces class files based on the yml config. This tool aims to enhance development efficiency and maintainability by automating the repetitive task of entity class generation.'
tags.addAll("db", "generator")
implementationClass = 'com.lyrieek.eg.gradle.GradlePlugin'
}
}
}
publishing {
repositories {
maven {
name = 'localPluginRepository'
url = uri("${gradle.gradleHomeDir}/caches/modules-2/files-2.1")
}
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.yaml:snakeyaml:2.3'
implementation 'net.bytebuddy:byte-buddy:1.15.11'
implementation 'com.baomidou:mybatis-plus-annotation:3.5.9'
implementation 'jakarta.persistence:jakarta.persistence-api:3.1.0'
implementation files(layout.projectDirectory.dir("src/main/resources"))
runtimeOnly 'com.oracle.database.jdbc:ojdbc8:23.3.0.23.09'//TODO
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}