-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy pathbuild.gradle.kts
77 lines (67 loc) · 2.16 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
import io.deepmedia.tools.deployer.model.Secret
plugins {
id("com.android.library")
id("io.deepmedia.tools.deployer")
}
android {
namespace = "com.otaliastudios.transcoder"
compileSdk = 34
defaultConfig.minSdk = 21
publishing { singleVariant("release") }
}
dependencies {
api(project(":lib"))
}
deployer {
content {
component {
fromSoftwareComponent("release")
emptyDocs()
emptySources()
}
}
projectInfo {
groupId = "com.otaliastudios"
artifactId = "transcoder"
release.version = "0.11.1" // change :lib and README
description = "Accelerated video compression and transcoding on Android using MediaCodec APIs (no FFMPEG/LGPL licensing issues). Supports cropping to any dimension, concatenation, audio processing and much more."
url = "https://opensource.deepmedia.io/transcoder"
scm.fromGithub("deepmedia", "Transcoder")
license(apache2)
developer("Mattia Iavarone", "[email protected]", "DeepMedia", "https://deepmedia.io")
}
signing {
key = secret("SIGNING_KEY")
password = secret("SIGNING_PASSWORD")
}
// use "deployLocal" to deploy to local maven repository
localSpec {
directory.set(rootProject.layout.buildDirectory.get().dir("inspect"))
signing {
key = absent()
password = absent()
}
}
// use "deployNexus" to deploy to OSSRH / maven central
nexusSpec {
auth.user = secret("SONATYPE_USER")
auth.password = secret("SONATYPE_PASSWORD")
syncToMavenCentral = true
}
// use "deployNexusSnapshot" to deploy to sonatype snapshots repo
nexusSpec("snapshot") {
auth.user = secret("SONATYPE_USER")
auth.password = secret("SONATYPE_PASSWORD")
repositoryUrl = ossrhSnapshots1
release.version = "latest-SNAPSHOT"
}
// use "deployGithub" to deploy to github packages
githubSpec {
repository = "Transcoder"
owner = "deepmedia"
auth {
user = secret("GHUB_USER")
token = secret("GHUB_PERSONAL_ACCESS_TOKEN")
}
}
}