Skip to content

Commit

Permalink
use conventions plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Dec 9, 2023
1 parent 191ca98 commit f34ff09
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 63 deletions.
6 changes: 0 additions & 6 deletions buildSrc/build.gradle.kts

This file was deleted.

22 changes: 0 additions & 22 deletions buildSrc/src/main/kotlin/Versions.kt

This file was deleted.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ kotlin.native.ignoreDisabledTargets=true

gitLabProjectId = 751
gitLabGroupId = 159
artifactVersion = 1.8.0-SNAPSHOT
artifactVersion = 1.8.1

jdk.version=17
3 changes: 2 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ pluginManagement {
includeBuild("conventions-vclib")
}
rootProject.name = "vclibrary"
include(":vclib")
include(":vclib")

33 changes: 2 additions & 31 deletions vclib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ kotlin {
implementation(bouncycastle("bcpkix"))
}
}
jvmTest {
jvmTest {
dependencies {
implementation("com.nimbusds:nimbus-jose-jwt:${VcLibVersions.Jvm.`jose-jwt`}")
implementation("org.json:json:${VcLibVersions.Jvm.json}")
Expand All @@ -47,36 +47,7 @@ kotlin {

exportIosFramework("VcLibKmm", *commonIosExports())

val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/main/", multiModuleDoc = true)

val gitLabPrivateToken: String? by extra
val gitLabProjectId: String by extra
val gitLabGroupId: String by extra

repositories {
mavenLocal()
if (System.getenv("CI_JOB_TOKEN") != null || gitLabPrivateToken != null) {
maven {
name = "gitlab"
url = uri("https://gitlab.iaik.tugraz.at/api/v4/groups/$gitLabGroupId/-/packages/maven")
if (gitLabPrivateToken != null) {
credentials(HttpHeaderCredentials::class) {
name = "Private-Token"
value = gitLabPrivateToken
}
} else if (System.getenv("CI_JOB_TOKEN") != null) {
credentials(HttpHeaderCredentials::class) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
mavenCentral()
}
val javadocJar = setupDokka(baseUrl = "https://github.com/a-sit-plus/kmm-vc-library/tree/backport/conventions")

publishing {
publications {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class DummyCredentialDataProvider(
private val defaultLifetime = 1.minutes

override fun getClaim(subjectId: String, attributeName: String) =
KmmResult.failure(UnsupportedOperationException("empty"))
KmmResult.failure<IssuerCredentialDataProvider.CredentialToBeIssued>(UnsupportedOperationException("empty"))

override fun getCredential(subjectId: String, attributeType: String) =
KmmResult.failure(UnsupportedOperationException("empty"))
KmmResult.failure<IssuerCredentialDataProvider.CredentialToBeIssued>(UnsupportedOperationException("empty"))

override fun getCredentialWithType(
subjectId: String,
Expand Down

0 comments on commit f34ff09

Please sign in to comment.