Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing jars in classpath of generared in jar MANIFEST #477

Merged
merged 4 commits into from
Mar 28, 2019

Conversation

joncelay
Copy link
Contributor

fixes #476

Classpath in jar MANIFEST now contains the project jars and is consistent with the classpath generated in launcher script.

@joncelay joncelay requested a review from a team as a code owner March 28, 2019 15:01
@palantirtech
Copy link
Member

Thanks for your interest in palantir/sls-packaging, @joncelay! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

FileCollection runtimeClasspath = project.getConfigurations().getByName("runtimeClasspath");

TaskProvider<Jar> jarTask = project.getTasks().withType(Jar.class)
.named(JavaPlugin.JAR_TASK_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we inline this into the below? also can do getByName rather than named if you're just gonna .get() it right afterwards

@bulldozer-bot bulldozer-bot bot merged commit e5068c6 into palantir:develop Mar 28, 2019
@joncelay joncelay deleted the patch-1 branch March 29, 2019 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Classpath generated with enableManifestClasspath is missing entries
3 participants