-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
47 lines (43 loc) · 1.38 KB
/
settings.gradle.kts
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
pluginManagement {
repositories {
gradlePluginPortal()
maven(url = "https://plugins.gradle.org/m2/")
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://s3.amazonaws.com/repo.commonsware.com")
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://s3.amazonaws.com/repo.commonsware.com")
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
val fullVersion = System.getProperty("java.version", "8.0.0")
val versionComponents = fullVersion
.split(".")
.take(2)
.filter { it.isNotBlank() }
.map { Integer.parseInt(it) }
val currentJdk = if (versionComponents[0] == 1) versionComponents[1] else versionComponents[0]
rootProject.name = "SimpleNews"
include(":common")
include(":library")
include(":app")
project(":app").projectDir = File("./android")
include(":desktop")