-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
76 lines (60 loc) · 2.42 KB
/
build.gradle.kts
File metadata and controls
76 lines (60 loc) · 2.42 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Gradle plugin project to get you started.
* For more details on writing Custom Plugins, please refer to https://docs.gradle.org/8.5/userguide/custom_plugins.html in the Gradle documentation.
*/
group = "com.mendixlabs.mendix-gradle-plugin"
version = "0.0.12-SNAPSHOT"
plugins {
// Apply the Java Gradle plugin development plugin to add support for developing Gradle plugins
`java-gradle-plugin`
// Apply the Kotlin JVM plugin to add support for Kotlin.
alias(libs.plugins.jvm)
id("maven-publish")
id("com.gradle.plugin-publish") version "1.3.1"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
implementation("org.xerial:sqlite-jdbc:3.49.1.0")
implementation("com.google.code.gson:gson:2.13.0")
// implementation("de.undercouch.download:de.undercouch.download.gradle.plugin:5.5.0")
// Use the Kotlin JUnit 5 integration.
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
gradlePlugin {
website = "https://github.com/mendixlabs/mendix-gradle-plugin"
vcsUrl = "https://github.com/mendixlabs/mendix-gradle-plugin.git"
val mendixGradlePlugin by plugins.creating {
id = "com.mendixlabs.mendix-gradle-plugin"
displayName = "Mendix Gradle Plugin"
description = "A plugin that helps you to interact with Mendix tools in a project."
tags = listOf("mendix", "project", "mxbuild")
implementationClass = "mendixlabs.mendixgradleplugin.MendixGradlePlugin"
}
}
publishing {
repositories {
mavenLocal()
}
}
// Add a source set for the functional test suite
val functionalTestSourceSet = sourceSets.create("functionalTest") {
}
configurations["functionalTestImplementation"].extendsFrom(configurations["testImplementation"])
configurations["functionalTestRuntimeOnly"].extendsFrom(configurations["testRuntimeOnly"])
// Add a task to run the functional tests
val functionalTest by tasks.registering(Test::class) {
testClassesDirs = functionalTestSourceSet.output.classesDirs
classpath = functionalTestSourceSet.runtimeClasspath
useJUnitPlatform()
}
gradlePlugin.testSourceSets.add(functionalTestSourceSet)