13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- import com.vanniktech.maven.publish.SonatypeHost
17
- import org.jetbrains.kotlin.gradle.dsl.JvmTarget
18
16
19
17
plugins {
20
- id(" com.android.library" )
21
- id(" org.jetbrains.kotlin.android" )
22
- id(" org.jetbrains.dokka" )
23
- id(" com.vanniktech.maven.publish" )
18
+ alias(libs.plugins.safebox.android.library)
19
+ alias(libs.plugins.safebox.publishing)
24
20
}
25
21
26
- group = " io.github.harrytmthy"
27
- version = " 1.3.0-alpha01"
28
-
29
22
android {
30
23
namespace = " com.harrytmthy.safebox.cryptography"
31
- compileSdk = 36
32
24
33
25
defaultConfig {
34
- minSdk = 23
35
- testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
36
26
consumerProguardFiles(" proguard-consumer-rules.pro" )
37
27
}
38
-
39
- buildTypes {
40
- release {
41
- isMinifyEnabled = false
42
- }
43
- }
44
-
45
- compileOptions {
46
- sourceCompatibility = JavaVersion .VERSION_11
47
- targetCompatibility = JavaVersion .VERSION_11
48
- }
49
-
50
- kotlin {
51
- compilerOptions {
52
- jvmTarget = JvmTarget .fromTarget(" 11" )
53
- }
54
- }
55
28
}
56
29
57
30
dependencies {
@@ -65,52 +38,9 @@ dependencies {
65
38
androidTestImplementation(libs.kotlin.test)
66
39
}
67
40
68
- dokka {
69
- dokkaSourceSets {
70
- configureEach {
71
- includes.from(" README.md" )
72
- }
73
- }
74
- }
75
-
76
- tasks.register<Jar >(" sourcesJar" ) {
77
- archiveClassifier.set(" sources" )
78
- from(android.sourceSets[" main" ].java.srcDirs)
79
- }
80
-
81
- tasks.register<Jar >(" javadocJar" ) {
82
- dependsOn(" dokkaJavadoc" )
83
- archiveClassifier.set(" javadoc" )
84
- from(tasks.named(" dokkaJavadoc" ).map { it.outputs.files })
85
- }
86
-
87
41
mavenPublishing {
88
- publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
89
- signAllPublications()
90
-
91
42
pom {
92
43
name.set(" SafeBox Crypto" )
93
44
description.set(" Cryptography core used by SafeBox, including ChaCha20-Poly1305 and AES-GCM keystore wrapping." )
94
- url.set(" https://github.com/harrytmthy/safebox" )
95
-
96
- licenses {
97
- license {
98
- name.set(" MIT License" )
99
- url.set(" https://opensource.org/licenses/MIT" )
100
- }
101
- }
102
-
103
- developers {
104
- developer {
105
- id.set(" harrytmthy" )
106
- name.set(" Harry Timothy Tumalewa" )
107
- email.set(" harrytmthy@gmail.com" )
108
- }
109
- }
110
- scm {
111
- connection.set(" scm:git:git://github.com/harrytmthy/safebox.git" )
112
- developerConnection.set(" scm:git:ssh://github.com:harrytmthy/safebox.git" )
113
- url.set(" https://github.com/harrytmthy/safebox" )
114
- }
115
45
}
116
46
}
0 commit comments