-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (96 loc) · 3.76 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.5.21'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
credentials {
username System.getenv("ARTIFACTORY_USERNAME")
password System.getenv("ARTIFACTORY_PASSWORD")
}
url "${artifactory_context_url}/libs-release"
}
maven {
credentials {
username System.getenv("ARTIFACTORY_USERNAME")
password System.getenv("ARTIFACTORY_PASSWORD")
}
url "${artifactory_context_url}/libs-snapshot"
}
mavenCentral()
}
publishing {
repositories {
maven {
credentials {
username System.getenv("ARTIFACTORY_USERNAME")
password System.getenv("ARTIFACTORY_PASSWORD")
}
url = "${artifactory_context_url}/libs-release-local"
}
}
}
if (!project.hasProperty("buildVersion")) {
ext.buildVersion = "LOCAL-Snapshot"
}
group 'com.akelius.university'
version '1.0.' + buildVersion
sourceCompatibility = '1.8'
kotlin {
jvm()
// js {
// On an empty project:
//2020-05-13T17:29:13.489+0200 [QUIET] [system.out] 13 05 2020 17:29:09.426:WARN [launcher]: ChromeHeadless have not captured in 60000 ms, killing.
//2020-05-13T17:29:13.489+0200 [QUIET] [system.out]
//2020-05-13T17:29:13.489+0200 [QUIET] [system.out] 13 05 2020 17:29:11.429:WARN [launcher]: ChromeHeadless was not killed in 2000 ms, sending SIGKILL.
//2020-05-13T17:29:13.489+0200 [QUIET] [system.out]
//2020-05-13T17:29:13.490+0200 [QUIET] [system.out] 13 05 2020 17:29:13.430:WARN [launcher]: ChromeHeadless was not killed by SIGKILL in 2000 ms, continuing.
//2020-05-13T17:29:13.490+0200 [QUIET] [system.out]
//2020-05-13T17:29:13.490+0200 [QUIET] [system.out]
//2020-05-13T17:29:13.490+0200 [ERROR] [org.jetbrains.kotlin.gradle.tasks.testing] java.lang.IllegalStateException: command '/Users/user13mar20/.gradle/nodejs/node-v12.14.0-darwin-x64/bin/node' exited with errors (exit code: 1)
// browser {
// }
// nodejs {
// }
// }
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
// jsMain {
// dependencies {
// implementation kotlin('stdlib-js')
// }
// }
// `JS Does not support such of tests` in Kotlin part of project... Why do we need it? XD
// > Task :compileTestKotlinJs FAILED
//e: /Users/user13mar20/Source/university-statistic-core-library/src/commonTest/kotlin/com/akelius/university/statistic/core/monthly.race/RaceCalculatorTest.kt: (11, 5): Name contains illegal chars that can't appear in JavaScript identifier
//e: /Users/user13mar20/Source/university-statistic-core-library/src/commonTest/kotlin/com/akelius/university/statistic/core/monthly.race/RaceCalculatorTest.kt: (41, 5): Name contains illegal chars that can't appear in JavaScript identifier
//e: /Users/user13mar20/Source/university-statistic-core-library/src/commonTest/kotlin/com/akelius/university/statistic/core/monthly.race/RaceCalculatorTest.kt: (79, 5): Name contains illegal chars that can't appear in JavaScript identifier
// jsTest {
// dependencies {
// implementation kotlin('test-js')
// }
// }
}
}