Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ subprojects {
group = 'com.linecorp.line.auth.fido.fido2'
version = '1.0.0-SNAPSHOT'

ext {
getMavenPublishUrl = {
return findProperty("publish.maven.url")
}

getMavenPublishUsername = {
return findProperty("publish.maven.username")
}

getMavenPublishPassword = {
return findProperty("publish.maven.password")
}
}

repositories {
mavenCentral()
maven {
Expand Down
23 changes: 23 additions & 0 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,29 @@ test {
useJUnitPlatform()
}

publishing {
publications {
mavenJar(MavenPublication) {
from components.java
}
}

repositories {
maven {
url = project.ext.getMavenPublishUrl()

if (project.ext.getMavenPublishUsername() != null) {
credentials {
username = project.ext.getMavenPublishUsername()
if (project.ext.getMavenPublishPassword() != null) {
password = project.ext.getMavenPublishPassword()
}
}
}
}
}
}

dependencies {
compile('com.fasterxml.jackson.core:jackson-databind:2.9.6')
compile('com.fasterxml.jackson.core:jackson-core:2.9.6')
Expand Down
23 changes: 23 additions & 0 deletions fido2-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,29 @@ plugins {
jar.enabled = true
bootJar.enabled = false

publishing {
publications {
mavenJar(MavenPublication) {
from components.java
}
}

repositories {
maven {
url = project.ext.getMavenPublishUrl()

if (project.ext.getMavenPublishUsername() != null) {
credentials {
username = project.ext.getMavenPublishUsername()
if (project.ext.getMavenPublishPassword() != null) {
password = project.ext.getMavenPublishPassword()
}
}
}
}
}
}

dependencies {
implementation project(':common')

Expand Down
Loading