Skip to content

Commit 2883418

Browse files
Issue 46321: Remove redundant lib directory containing jar files (#39)
1 parent 078314d commit 2883418

File tree

3 files changed

+5
-44
lines changed

3 files changed

+5
-44
lines changed

labkey-client-api/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# The LabKey Remote API Library for Java - Change Log
22

3+
## version TBD
4+
*Released*: TBD
5+
* Issue 46321: Remove `lib` directory from `fatJar` in favor of pulling dependencies via the published pom files when needed
6+
* Remove artifactory plugin since we use the maven `publish` command now
7+
38
## version 3.1.0
49
*Released*: 20 September 2022
510
* Add support for creating Freezer Manager freezer hierarchies via StorageController APIs (earliest compatible LabKey Server version: 22.10.0)

labkey-client-api/build.gradle

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ buildscript {
1818
}
1919
dependencies {
2020
classpath "org.labkey.build:gradlePlugins:${gradlePluginsVersion}"
21-
// N.B. We use the "old-fashioned" way of applying the artifactory plugin because if we use
22-
// the plugins block below and specify a version number, the following error happens if building
23-
// in conjunction with LabKey server (i.e., when including this project in the server's build.gradle
24-
// Error resolving plugin [id: 'com.jfrog.artifactory', version: '4.13.0', apply: false]
25-
// > Plugin request for plugin already on the classpath must not include a version
26-
// We could instead include the plugin without a version number, which would work until
27-
// some change in the latest version of the plugin came along that we aren't compatible with.
28-
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:${artifactoryPluginVersion}"
2921
}
3022
}
3123

@@ -124,10 +116,6 @@ project.task("fatJar",
124116
jar.setArchiveVersion(project.version)
125117
jar.archiveClassifier.set(LabKey.FAT_JAR_CLASSIFIER)
126118
jar.dependsOn project.tasks.jar
127-
jar.into('lib') {
128-
from tasks.jar
129-
from configurations.runtimeClasspath
130-
}
131119
}
132120
)
133121

@@ -225,37 +213,6 @@ project.publishing {
225213
}
226214
}
227215
}
228-
apply plugin: 'com.jfrog.artifactory'
229-
artifactory {
230-
contextUrl = "${artifactory_contextUrl}"
231-
//The base Artifactory URL if not overridden by the publisher/resolver
232-
publish {
233-
repository {
234-
repoKey = BuildUtils.getRepositoryKey(project)
235-
if (project.hasProperty('artifactory_user') && project.hasProperty('artifactory_password'))
236-
{
237-
username = artifactory_user
238-
password = artifactory_password
239-
}
240-
maven = true
241-
}
242-
defaults {
243-
publishBuildInfo = false
244-
publishPom = true
245-
publishIvy = false
246-
}
247-
}
248-
}
249-
250-
project.artifactoryPublish {
251-
project.tasks.each {
252-
if (it instanceof Jar)
253-
{
254-
dependsOn it
255-
}
256-
}
257-
publications('libs')
258-
}
259216
}
260217

261218
project.model {

labkey-client-api/gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ artifactory_contextUrl=https://labkey.jfrog.io/artifactory
77
sourceCompatibility=17
88
targetCompatibility=17
99

10-
artifactoryPluginVersion=4.21.0
1110
gradlePluginsVersion=1.35.0
1211

1312
commonsCodecVersion=1.15

0 commit comments

Comments
 (0)