Skip to content

Commit

Permalink
add maven publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinglu committed Apr 27, 2019
1 parent bf1f451 commit 9a01deb
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ plugins {
}

group 'org.shijinglu'
version '1.0-SNAPSHOT'
version '0.1.0'

sourceCompatibility = 1.8

apply plugin: 'java'
apply plugin: 'maven-publish'

repositories {
maven { url "https://jitpack.io" }
mavenCentral()

}

dependencies {
Expand All @@ -21,3 +23,36 @@ dependencies {
compile group: 'redis.clients', name: 'jedis', version: '2.+'
implementation 'org.shijinglu:lure-java:v0.1.4'
}

// Publish to Maven Repository
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
maven(MavenPublication) {
groupId = 'org.shijinglu'
artifactId = 'asrc-server-core'
version = "${version}"
from components.java
pom {
name = 'A Simple Configuration Server'
description = 'A light ware DSL lib that handles rule evaluation'
developers {
developer {
id = 'shijinglu'
name = 'Shijing Lu'
email = 'Shijing.Lu@gmail.com'
}
}
scm {
// git@github.com:shijinglu/asrc-core.git
connection = 'scm:git:git@github.com:shijinglu/asrc-core.git'
developerConnection = 'scm:git:ssh://github.com/shijinglu/asrc-core.git'
url = 'https://github.com/shijinglu/asrc-core'
}
}
}

}
}

0 comments on commit 9a01deb

Please sign in to comment.