-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (59 loc) · 1.51 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
plugins {
alias(libs.plugins.kotlin)
`maven-publish`
}
repositories {
mavenCentral()
maven("https://reposilite.silenium.dev/releases") {
name = "silenium-releases"
}
}
dependencies {
implementation(libs.jni.utils)
}
val deployKotlin = (findProperty("deploy.kotlin") as String?)?.toBoolean() ?: true
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
languageVersion = KotlinVersion.KOTLIN_1_7
}
jvmToolchain(8)
}
java {
withSourcesJar()
}
tasks.jar {
from(layout.projectDirectory) {
include("LICENSE", "THIRDPARTY_LICENSES")
}
}
allprojects {
apply<MavenPublishPlugin>()
apply<BasePlugin>()
group = "dev.silenium.libs.ffmpeg"
version = findProperty("deploy.version") as String? ?: "0.0.0-SNAPSHOT"
publishing {
repositories {
val url = System.getenv("MAVEN_REPO_URL") ?: return@repositories
maven(url) {
name = "reposilite"
credentials {
username = System.getenv("MAVEN_REPO_USERNAME") ?: ""
password = System.getenv("MAVEN_REPO_PASSWORD") ?: ""
}
}
}
}
}
publishing {
publications {
if (deployKotlin) {
create<MavenPublication>("kotlin") {
from(components["java"])
artifactId = "ffmpeg-natives"
}
}
}
}