-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathbuild.gradle
More file actions
88 lines (73 loc) · 2.2 KB
/
Copy pathbuild.gradle
File metadata and controls
88 lines (73 loc) · 2.2 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
87
88
import org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
id "org.jetbrains.kotlin.jvm" version "2.0.20"
id 'java-library'
id 'org.jetbrains.dokka' version '1.9.20'
id 'maven-publish'
}
repositories {
mavenCentral()
}
dependencies {
implementation project(':procedural:scheduling')
implementation project(':procedural:timeline')
implementation project(':merlin-driver')
implementation project(':scheduler-driver')
implementation project(':parsing-utilities')
implementation project(':type-utils')
implementation project(':orchestration-utils')
testImplementation 'org.junit.jupiter:junit-jupiter-engine:6.0.1'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5'
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.withType(KotlinJvmCompile.class).configureEach {
jvmTargetValidationMode = JvmTargetValidationMode.WARNING
}
tasks.named('test') {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
java {
withJavadocJar()
withSourcesJar()
}
var timelineSource = "${project(":procedural:timeline").projectDir}/src/main/kotlin"
var schedulingSource = "${project(":procedural:scheduling").projectDir}/src/main/kotlin"
dokkaHtmlPartial.configure {
dokkaSourceSets {
configureEach {
// used as project name in the header
moduleName.set("Utils")
reportUndocumented.set(true)
// contains descriptions for the module and the packages
includes.from("MODULE_DOCS.md")
sourceRoots.from(timelineSource)
suppressedFiles.from(timelineSource)
sourceRoots.from(schedulingSource)
suppressedFiles.from(schedulingSource)
}
}
}
publishing {
publications {
library(MavenPublication) {
version = findProperty("publishing.version")
from components.java
}
}
publishing {
repositories {
maven {
name = findProperty("publishing.name")
url = findProperty("publishing.url")
credentials {
username = System.getenv(findProperty("publishing.usernameEnvironmentVariable"))
password = System.getenv(findProperty("publishing.passwordEnvironmentVariable"))
}
}
}
}
}