forked from MicroEJ/Example-Java-Widget
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
131 lines (122 loc) · 4.05 KB
/
build.gradle.kts
File metadata and controls
131 lines (122 loc) · 4.05 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
* Kotlin
*
* Copyright 2024 MicroEJ Corp. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found with this software.
*/
plugins {
id("com.microej.gradle.application") version "1.2.0"
}
group = "com.microej.example.ui"
version = "8.1.0"
val userHome = System.getProperty("user.home")
microej {
applicationEntryPoint = "com.microej.demo.widget.common.Navigation"
}
dependencies {
implementation("ej.api:edc:1.3.5")
implementation("ej.api:microui:3.1.0")
implementation("ej.api:drawing:1.0.2")
implementation("ej.library.ui:widget:5.2.0")
implementation("ej.library.runtime:basictool:1.5.0")
implementation("ej.library.runtime:service:1.1.1")
implementation("ej.library.eclasspath:collections:1.4.0")
implementation("ej.library.eclasspath:stringtokenizer:1.2.0")
microejVee("com.microej.veeport.st.stm32f7508-dk:M5QNX_eval:2.2.0")
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
microej.useMicroejTestEngine(this)
dependencies {
implementation(project())
implementation("ej.api:edc:1.3.5")
implementation("ej.api:microui:3.1.0")
implementation("ej.api:drawing:1.0.2")
implementation("ej.library.test:junit:1.7.1")
implementation("ej.library.runtime:basictool:1.5.0")
implementation("org.junit.platform:junit-platform-launcher:1.8.2")
}
}
}
}
repositories {
/* Local Repository for Maven/Gradle modules */
maven {
name = "localRepository"
url = uri("${userHome}/.microej/repository")
}
/* Local Repository for Ivy modules */
ivy {
name = "localRepositoryIvy"
url = uri("${userHome}/.ivy2/repository")
patternLayout {
artifact("[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])")
ivy("[organisation]/[module]/[revision]/ivy-[revision].xml")
setM2compatible(true)
}
}
/* MicroEJ Central repository for Maven/Gradle modules */
maven {
name = "microEJCentral"
url = uri("https://repository.microej.com/modules")
}
/* MicroEJ Forge Central repository for Maven/Gradle modules */
maven {
name = "microEJForgeCentral"
url = uri("https://forge.microej.com/artifactory/microej-central-repository-release")
}
/* MicroEJ Developer repository for Maven/Gradle modules */
maven {
name = "microEJForgeDeveloper"
url = uri("https://forge.microej.com/artifactory/microej-developer-repository-release")
}
/* MicroEJ SDK 6 repository for Maven/Gradle modules */
maven {
name = "microEJForgeSDK6"
url = uri("https://forge.microej.com/artifactory/microej-sdk6-repository-release/")
}
/* MicroEJ Central repository for Ivy modules */
ivy {
name = "microEJCentralIvy"
url = uri("https://repository.microej.com/modules")
patternLayout {
artifact("[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])")
ivy("[organisation]/[module]/[revision]/ivy-[revision].xml")
setM2compatible(true)
}
}
/* MicroEJ Forge Central repository for Ivy modules */
ivy {
name = "microEJForgeCentralIvy"
url = uri("https://forge.microej.com/artifactory/microej-central-repository-release")
patternLayout {
artifact("[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])")
ivy("[organisation]/[module]/[revision]/ivy-[revision].xml")
setM2compatible(true)
}
}
/* MicroEJ Developer repository for Ivy modules */
ivy {
name = "microEJForgeDeveloperIvy"
url = uri("https://forge.microej.com/artifactory/microej-developer-repository-release")
patternLayout {
artifact("[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])")
ivy("[organisation]/[module]/[revision]/ivy-[revision].xml")
setM2compatible(true)
}
}
/* MicroEJ SDK 6 repository for Ivy modules */
ivy {
name = "microEJForgeSDK6Ivy"
url = uri("https://forge.microej.com/artifactory/microej-sdk6-repository-release/")
patternLayout {
artifact("[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier])(.[ext])")
ivy("[organisation]/[module]/[revision]/ivy-[revision].xml")
setM2compatible(true)
}
}
}