-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
96 lines (85 loc) · 3.21 KB
/
build.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
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
allprojects {
repositories {
mavenLocal()
maven {
credentials {
username = "6247fd667e8dbc28d8a2212c"
password = "(4e])luJ1RG8"
}
url = uri("https://packages.aliyun.com/maven/repository/2117453-release-bMZITa/")
}
maven { url = uri("https://maven.aliyun.com/repository/central") }
mavenCentral()
maven { url = uri("https://maven.aliyun.com/repository/google") }
google()
maven { url = uri("https://jitpack.io/") }
maven { url = uri("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/") }
maven { url = uri("https://repo.huaweicloud.com/repository/maven/") }
}
}
project(":desktop:decode-core") {
tasks {
withType<JavaCompile>().configureEach {
sourceCompatibility = "17"
targetCompatibility = "17"
options.encoding = "UTF-8"
options.isDeprecation = false
}
withType<Jar>().configureEach {
// manifest for all created JARs
manifest.attributes(
"Implementation-Vendor" to "FormDev Software GmbH",
"Implementation-Copyright" to "Copyright (C) 2019-${java.time.LocalDate.now().year} yinxueqin. All rights reserved.",
"Implementation-Version" to project.version
)
}
withType<Javadoc>().configureEach {
options {
this as StandardJavadocDocletOptions
title = "${project.name} $version"
header = title
isUse = true
tags = listOf( "uiDefault", "clientProperty" )
addStringOption( "Xdoclint:all,-missing", "-Xdoclint:all,-missing" )
links( "https://docs.oracle.com/en/java/javase/11/docs/api/" )
}
isFailOnError = false
}
}
}
project(":desktop:decode-ui") {
tasks {
withType<JavaCompile>().configureEach {
sourceCompatibility = "17"
targetCompatibility = "17"
options.encoding = "UTF-8"
options.isDeprecation = false
}
withType<Jar>().configureEach {
// manifest for all created JARs
manifest.attributes(
"Implementation-Vendor" to "FormDev Software GmbH",
"Implementation-Copyright" to "Copyright (C) 2019-${java.time.LocalDate.now().year} yinxueqin. All rights reserved.",
"Implementation-Version" to project.version
)
}
withType<Javadoc>().configureEach {
options {
this as StandardJavadocDocletOptions
title = "${project.name} $version"
header = title
isUse = true
tags = listOf( "uiDefault", "clientProperty" )
addStringOption( "Xdoclint:all,-missing", "-Xdoclint:all,-missing" )
links( "https://docs.oracle.com/en/java/javase/11/docs/api/" )
}
isFailOnError = false
}
}
}
plugins {
//如果需要使用kotlin
kotlin("android") apply false
id("com.android.application") apply false
id("com.android.library") apply false
}