-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
99 lines (87 loc) · 3.04 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
99 lines (87 loc) · 3.04 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
89
90
91
92
93
94
95
96
97
98
99
import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
java
`maven-publish`
kotlin("jvm") version "1.5.10"
id("org.jetbrains.compose") version "0.4.0"
id("org.jetbrains.dokka") version "1.4.32"
}
val ENV = System.getenv()
repositories {
mavenLocal()
maven {
url = uri("https://gitlab.cri.epita.fr/api/v4/groups/3042/-/packages/maven/")
credentials(HttpHeaderCredentials::class) {
name = "Private-Token"
value = ENV["ACCESS_TOKEN"]
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
jcenter()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
}
dependencies {
implementation("fr.epita.java:lang:1.0.0")
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("org.eclipse.jgit:org.eclipse.jgit:5.11.1.202105131744-r")
implementation("org.apache.lucene:lucene-core:8.8.2")
implementation("org.apache.lucene:lucene-queryparser:8.8.2")
implementation("org.projectlombok:lombok:1.18.20")
implementation("org.apache.commons:commons-compress:1.20")
implementation("org.apache.maven:maven-compat:3.6.3")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.11.1")
implementation("org.assertj:assertj-core:3.19.0")
implementation("org.jetbrains.jediterm:jediterm-pty:2.42")
implementation("log4j:log4j:1.2.17")
implementation("org.jetbrains.pty4j:pty4j:0.8.6")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.1")
implementation(compose.desktop.currentOs)
api(compose.materialIconsExtended)
}
tasks.named<Test>("test") {
useJUnitPlatform()
}
group = "fr.epita.assistant"
version = "1.0.0-SNAPSHOT"
description = "ping-ref"
java.sourceCompatibility = JavaVersion.VERSION_16
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.withType<JavaCompile>() {
options.encoding = "utf-8"
}
val mainClass = "fr.epita.assistants.ui.MainKt"
tasks {
register("fatJar", Jar::class.java) {
archiveClassifier.set("all")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes("Main-Class" to mainClass)
}
from(configurations.runtimeClasspath.get()
.onEach { println("add from dependencies: ${it.name}") }
.map { if (it.isDirectory) it else zipTree(it) }) {
exclude("META-INF/*.SF")
exclude("META-INF/*.DSA")
exclude("META-INF/*.RSA")
}
val sourcesMain = sourceSets.main.get()
sourcesMain.allSource.forEach { println("add from sources: ${it.name}") }
from(sourcesMain.output)
}
}