-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
87 lines (69 loc) · 1.98 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
plugins {
id "com.gradle.plugin-publish" version "0.14.0"
id 'java-gradle-plugin'
id 'groovy'
}
group 'com.qqviaja.gradle'
version '2.5'
description "Mybatis Gradle Generator Plugin"
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: "com.gradle.plugin-publish"
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
implementation gradleApi()
implementation localGroovy()
testImplementation 'org.mybatis:mybatis:3.5.7'
testImplementation 'org.testcontainers:spock:1.16.0'
testImplementation 'org.spockframework:spock-core:2.0-groovy-3.0'
}
gradlePlugin {
// Define the plugin
plugins {
MybatisGenerator {
id = 'com.qqviaja.gradle.MybatisGenerator'
implementationClass = 'com.qqviaja.gradle.MybatisGeneratorPlugin'
}
}
}
sourceSets {
functionalTest {
}
}
gradlePlugin.testSourceSets(sourceSets.functionalTest)
configurations.functionalTestImplementation.extendsFrom(configurations.testImplementation)
// Add a task to run the functional tests
tasks.register('functionalTest', Test) {
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
// jvmArgs '--enable-preview'
}
check {
// Run the functional tests as part of `check`
dependsOn(tasks.functionalTest)
}
pluginBundle {
website = 'https://github.com/kimichen13/mybatis-generator-plugin.git'
vcsUrl = 'https://github.com/kimichen13/mybatis-generator-plugin.git'
description = "${project.description}"
tags = ['mybatis', 'generator']
plugins {
MybatisGenerator {
displayName = 'Mybatis Gradle Generator Plugin'
}
}
mavenCoordinates {
groupId = "com.qqviaja.gradle"
artifactId = "mybatis-generator-plugin"
version = "2.5"
}
}