Skip to content

Commit

Permalink
Merge pull request #687 from marklogic/feature/gradle-fix
Browse files Browse the repository at this point in the history
Updated Gradle config
  • Loading branch information
rjrudin authored Jan 25, 2024
2 parents 40e3616 + 3092062 commit d3defca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
23 changes: 11 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
id "groovy"
id "maven-publish"
id "signing"

// Ignored as it depends on Java 11; can uncomment and use Java 11 when it needs to be run
// id "com.github.jk1.dependency-license-report" version "2.1"
Expand All @@ -12,8 +11,13 @@ plugins {
id "io.snyk.gradle.plugin.snykplugin" version "0.4"
}

// Applied conditionally so that it does not take effect when publishing locally.
if (project.hasProperty("signing.keyId")) {
apply plugin: "signing"
}

group = "com.marklogic"
version = "4.6.1"
version = "4.7-SNAPSHOT"

java {
sourceCompatibility = 1.8
Expand All @@ -24,18 +28,18 @@ repositories {
mavenLocal()
mavenCentral()
maven {
url "https://nexus.marklogic.com/repository/maven-snapshots/"
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
}

dependencies {
implementation gradleApi()
implementation localGroovy()

api 'com.marklogic:ml-app-deployer:4.6.1'
api 'com.marklogic:ml-app-deployer:4.7-SNAPSHOT'
implementation "com.marklogic:mlcp-util:1.0.1"
implementation "com.marklogic:marklogic-data-movement-components:2.7.0"
implementation "commons-io:commons-io:2.11.0"
implementation "commons-io:commons-io:2.15.1"

compileOnly "com.marklogic:marklogic-unit-test-client:1.4.0"

Expand All @@ -51,23 +55,20 @@ dependencies {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allJava
from sourceSets.main.allGroovy
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
archiveClassifier = "javadoc"
from javadoc
}
javadoc.failOnError = false

artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}

task generatePomForDependencyGraph(dependsOn: "generatePomFileForMainJavaPublication") {
description = "Prepare for a release by making a copy of the generated pom file in the root directory so that it " +
Expand Down Expand Up @@ -113,8 +114,6 @@ publishing {
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
repositories {
Expand Down
2 changes: 1 addition & 1 deletion examples/local-testing-project/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ buildscript {
repositories {
mavenLocal()
maven {
url "https://nexus.marklogic.com/repository/maven-snapshots/"
url "https://bed-artifactory.bedford.progress.com:443/artifactory/ml-maven-snapshots/"
}
mavenCentral()
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down

0 comments on commit d3defca

Please sign in to comment.