This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (62 loc) · 1.99 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
/*
* Copyright (c) 2021. Linkit and or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR FILE HEADERS.
*
* This code is free software; you can only use it for personal uses, studies or documentation.
* You can download this source code, and modify it ONLY FOR PERSONAL USE and you
* ARE NOT ALLOWED to distribute your MODIFIED VERSION.
* For any professional use, please contact me at overridelinkit@gmail.com.
*
* Please contact overridelinkit@gmail.com if you need additional information or have any
* questions.
*/
plugins {
id 'java-library'
id 'scala'
id 'maven-publish'
}
println("Running Linkit gradle script using java JDK: " + System.getProperty("java.version"))
group 'linkit'
version 'alpha-0.0.0'
subprojects {
group = "fr.linkit"
version = "alpha-0.0.0"
apply plugin: 'java-library'
apply plugin: 'scala'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'org.scala-lang', name: 'scala-library', version: '2.13.10'
implementation group: 'org.jetbrains', name: 'annotations', version: '16.0.1'
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
test {
useJUnitPlatform()
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = [
"-feature",
"-language:implicitConversions",
"-language:experimental.macros"
]
}
tasks.withType(JavaCompile) {
it.options.compilerArgs.add('--enable-preview')
sourceCompatibility = '19'
targetCompatibility = '19'
}
}
wrapper {
gradleVersion = "7.5.1"
distributionType = Wrapper.DistributionType.ALL
}