File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed
gradle/build-logic/common-plugins/src/main/kotlin/plugins Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ dependencies {
35
35
commonMainApi(libs.intellij.markdown)
36
36
commonMainApi(libs.kotlin.codepoints.deluxe)
37
37
commonMainApi(libs.multiplatform.settings.core)
38
+ commonTestApi(libs.ktor.client.mock)
38
39
39
40
jvmMainApi(libs.kotlin.retry)
40
41
// jvmMainImplementation(libs.slf4j.api)
41
- commonTestApi(libs.ktor.client.mock)
42
42
}
43
43
44
44
// kotlin.sourceSets.commonMain {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package plugins
2
2
3
3
import com.google.devtools.ksp.gradle.KspTaskJvm
4
4
import common.*
5
+ import java.util.jar.Attributes
5
6
import org.gradle.kotlin.dsl.*
6
7
import org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode
7
8
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -106,6 +107,19 @@ tasks {
106
107
}
107
108
}
108
109
110
+ withType<Jar >().configureEach {
111
+ manifest {
112
+ attributes(
113
+ " Automatic-Module-Name" to project.group,
114
+ " Built-By" to System .getProperty(" user.name" ),
115
+ " Built-JDK" to System .getProperty(" java.runtime.version" ),
116
+ Attributes .Name .IMPLEMENTATION_TITLE .toString() to project.name,
117
+ Attributes .Name .IMPLEMENTATION_VERSION .toString() to project.version,
118
+ )
119
+ }
120
+ duplicatesStrategy = DuplicatesStrategy .WARN
121
+ }
122
+
109
123
// Javadoc
110
124
javadoc {
111
125
isFailOnError = true
Original file line number Diff line number Diff line change @@ -173,14 +173,14 @@ kotlinMultiplatform.apply {
173
173
dependencies {
174
174
implementation(project.dependencies.platform(libs.junit.bom))
175
175
implementation(kotlin(" test-junit5" ))
176
+ implementation(libs.slf4j.simple)
176
177
implementation(libs.mockk)
177
178
}
178
179
}
179
180
180
181
val jsMain by getting {
181
182
dependencies {
182
183
implementation(kotlinw(" browser" ))
183
- // implementation(kotlinw("web"))
184
184
// kspDependency("CommonMainMetadata", project(":meta:ksp:processor"))
185
185
// kspDependency("Js", project(":meta:ksp:processor"))
186
186
}
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ tasks {
78
78
withType<AbstractArchiveTask >().configureEach {
79
79
isPreserveFileTimestamps = false
80
80
isReproducibleFileOrder = true
81
+ // val `rw-r--r--` = 0b110100100
82
+ // val `rwxr-xr-x` = 0b111101101
83
+ // fileMode = `rw-r--r--`
84
+ // dirMode = `rwxr-xr-x`
85
+ // filesMatching("**/bin/*") { mode = `rwxr-xr-x` }
86
+ // filesMatching("**/bin/*.bat") { mode = `rw-r--r--` }
81
87
}
82
88
83
89
// Run the checkBestPractices check for build-logic included builds.
You can’t perform that action at this time.
0 commit comments