-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.old
82 lines (65 loc) · 1.5 KB
/
build.gradle.old
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'ch.epfl.scala:gradle-bloop_2.12:1.5.0'
}
}
plugins {
id 'signing'
id 'java'
id 'idea'
id 'eclipse'
}
group = 'io.github.forsyde'
archivesBaseName = project.name
version = '0.2.6'
tasks.register('getVersion') {
doFirst {
println version
}
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_11
}
compileTestJava {
sourceCompatibility = JavaVersion.VERSION_11
}
allprojects {
apply plugin: 'bloop'
}
subprojects {
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'io.github.forsyde'
archivesBaseName = rootProject.name + '-' + project.name
version = rootProject.version
repositories {
// Use 'jcenter' for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
dependencies {
// implementation "org.scala-lang:scala3-library_3:3.1.2"
// testImplementation "org.scalatest:scalatest_3:3.1.2"
}
java {
withSourcesJar()
withJavadocJar()
}
artifacts {
archives javadocJar, sourcesJar
}
sourceSets {
main {
scala {
srcDirs += 'src/main/scala-3'
}
}
}
}