Skip to content

Commit 547e10c

Browse files
committed
Update to non-deprecated configurations
SVN r64609 |2019-10-14 02:49:00 +0000
1 parent 0163420 commit 547e10c

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

java/build.gradle

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11

22
plugins {
33
id 'java'
4-
// id 'java-library'
5-
id 'maven'
64
id 'maven-publish'
75
}
86

@@ -25,13 +23,13 @@ project.configurations {
2523
}
2624

2725
dependencies {
28-
compile "org.apache.httpcomponents:httpmime:${httpmimeVersion}"
29-
compile ("com.googlecode.json-simple:json-simple:${jsonSimpleVersion}")
26+
implementation "org.apache.httpcomponents:httpmime:${httpmimeVersion}"
27+
implementation ("com.googlecode.json-simple:json-simple:${jsonSimpleVersion}")
3028
{
3129
// exclude this because it gets in the way of our own JSON object implementations from server/api
3230
exclude group: "org.json", module:"json"
3331
}
34-
compile "net.sf.opencsv:opencsv:${opencsvVersion}"
32+
implementation "net.sf.opencsv:opencsv:${opencsvVersion}"
3533
}
3634

3735
jar {
@@ -65,14 +63,14 @@ project.task("fatJar",
6563
{
6664
Jar jar ->
6765
jar.from sourceSets.main.output
68-
jar.from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }}
69-
jar.baseName artifactPrefix
70-
jar.version project.version
66+
jar.from { configurations.default.collect { it.isDirectory() ? it : zipTree(it) }}
67+
jar.archiveBaseName = artifactPrefix
68+
jar.archiveVersion = project.version
7169
jar.classifier LabKey.FAT_JAR_CLASSIFIER
7270
jar.dependsOn project.tasks.jar
7371
jar.into('lib') {
7472
from tasks.jar
75-
from configurations.compile
73+
from configurations.default
7674
}
7775
}
7876
)
@@ -89,7 +87,7 @@ if (project.hasProperty('javaClientDir'))
8987
project.task('javadocJar', description: "Generate jar file of javadoc files", type: Jar) {Jar jar ->
9088
jar.from project.tasks.javadoc.destinationDir
9189
jar.group GroupNames.DISTRIBUTION
92-
jar.baseName artifactPrefix
90+
jar.archiveBaseName = artifactPrefix
9391
jar.classifier LabKey.JAVADOC_CLASSIFIER
9492
jar.dependsOn project.tasks.javadoc
9593
}
@@ -98,7 +96,7 @@ project.task('sourcesJar', description: "Generate jar file of source files", typ
9896
jar.from project.sourceSets.main.allJava
9997

10098
jar.group GroupNames.DISTRIBUTION
101-
jar.baseName artifactPrefix
99+
jar.archiveBaseName = artifactPrefix
102100
jar.classifier LabKey.SOURCES_CLASSIFIER
103101
}
104102

0 commit comments

Comments
 (0)