Skip to content

Commit

Permalink
Changes to fix compatibility with publish to clojars
Browse files Browse the repository at this point in the history
  • Loading branch information
regunathb committed Jun 24, 2022
1 parent 11ffcb7 commit d465f53
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,22 @@ allprojects {
}
}

tasks.withType(GenerateModuleMetadata) {
enabled = false
}

publishing {
publications {
maven(MavenPublication) {
groupId = 'com.flipkart'
artifactId = 'grpc-jexpress'
version = '1.38_0.1'
version = '1.39-SNAPSHOT'
from components.java
}
}
repositories {
maven {
url "https://repo.clojars.org"
url "https://clojars.org/repo"
credentials {
username = rootProject.ext.clojarsusername
password = rootProject.ext.clojarspassword
Expand All @@ -49,7 +53,7 @@ def guiceVersion = '4.1.0'

subprojects {
group = 'com.flipkart.grpc-jexpress'
version = '1.38_0.1'
version = '1.39-SNAPSHOT'

jar {
manifest.attributes provider: 'gradle'
Expand Down
6 changes: 5 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ plugins {
id 'maven-publish'
}

tasks.withType(GenerateModuleMetadata) {
enabled = false
}

publishing {
publications {
maven(MavenPublication) {
Expand All @@ -12,7 +16,7 @@ publishing {
}
repositories {
maven {
url "https://repo.clojars.org"
url "https://clojars.org/repo"
credentials {
username = rootProject.ext.clojarsusername
password = rootProject.ext.clojarspassword
Expand Down
2 changes: 1 addition & 1 deletion examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {
mavenLocal()
}

def jexpressVersion = '1.38_0.1'
def jexpressVersion = '1.39-SNAPSHOT'
def grpcVersion = '1.38.0'
def protobufVersion = '3.12.0'
def protocVersion = protobufVersion
Expand Down
6 changes: 5 additions & 1 deletion guice/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ plugins {
id 'maven-publish'
}

tasks.withType(GenerateModuleMetadata) {
enabled = false
}

publishing {
publications {
maven(MavenPublication) {
Expand All @@ -12,7 +16,7 @@ publishing {
}
repositories {
maven {
url "https://repo.clojars.org"
url "https://clojars.org/repo"
credentials {
username = rootProject.ext.clojarsusername
password = rootProject.ext.clojarspassword
Expand Down
6 changes: 5 additions & 1 deletion runtime/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
apply plugin: 'java-library'
apply plugin: 'maven-publish'

tasks.withType(GenerateModuleMetadata) {
enabled = false
}

publishing {
publications {
maven(MavenPublication) {
Expand All @@ -10,7 +14,7 @@ publishing {
}
repositories {
maven {
url "https://repo.clojars.org"
url "https://clojars.org/repo"
credentials {
username = rootProject.ext.clojarsusername
password = rootProject.ext.clojarspassword
Expand Down

0 comments on commit d465f53

Please sign in to comment.