Skip to content

HHH-9641 Publish JavaDoc JARs #2078

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

Conversation

smoothreggae
Copy link

HHH-9641 is an old ticket and isn't assigned to anyone, but the required changes didn't seem too hard so I gave it a shot. I tested my changes with a ./gradlew clean assemble publishToMavenLocal (which, before my changes only created the binary and source JARs). I'd be glad to do any more required testing and make any other changes necessary.

@vladmihalcea
Copy link
Contributor

Looks good. I wonder if there is anything we should change.

@vladmihalcea
Copy link
Contributor

I started a discussion on the mailing list and will attach it here. Basically, this was intended and that's why we have aggregated Java Docs.

However, since this is already tested and it works, we might integrate this change as well. I'm waiting to see if there's anyone against it.

@sebersole
Copy link
Member

If you can resolve the conflicts I will integrate this next week.

// The OSGi JAR manifest support does not like a non-existent classes dir,
// so make sure we dont use the OSGi one :)
manifest = null
}
Copy link
Member

Choose a reason for hiding this comment

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

Why publishing empty JavaDocs?

Copy link
Author

@smoothreggae smoothreggae Dec 18, 2017

Choose a reason for hiding this comment

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

I just replicated what was being done for the sources JAR. I should be able to supress the generation of the JavaDoc JAR and amend the PR.

Copy link
Member

Choose a reason for hiding this comment

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

It is more a question. No one on the team actually ever uses javadoc jars - in our opinion its silly when you can instead just use the sources jar. So I am really asking.

@sebersole
Copy link
Member

I hope to do 5.3.0.Beta1 this week. No rush, but if you want it in there...

@smoothreggae smoothreggae force-pushed the HHH-9641/publish-javadoc-jars branch from 2288084 to 57e0761 Compare December 19, 2017 15:24
@smoothreggae
Copy link
Author

I've updated the branch based on the latest in the upstream master.

I just realized something that should really have been obvious when I made the changes: the same all-encompassing JavaDoc JAR is being created for each of the sub-projects. Although this serves the need for a JavaDoc JAR, it seems wrong to include JavaDoc for classes that are not part of a given artifact and it seems wrong to publish such a large JAR for each sub-project.

I could do one of the following:

  • decline the PR (since the team doesn't really use the JavaDoc JARs)
  • see what it takes to get a more correct JavaDoc JAR for each sub-project without upsetting the existing build and then update the PR

Let me know which option you'd prefer.

@sebersole
Copy link
Member

sebersole commented Dec 19, 2017 via email

@smoothreggae
Copy link
Author

Thanks for not choosing to decline it outright :) Let me see what I can do to get some module-specific JavaDoc JARs.

@sebersole
Copy link
Member

Have you checked the Gradle documentation? Generating javadoc jar is pretty straight-forward.

@smoothreggae
Copy link
Author

@sebersole, my changes initially reused what the build in this project already does for JavaDoc. I do plan to use the standard javdoc task from Gradle (I'll likely duplicate some of the configuration from aggregateJavadocs in documentation/documentation.gradle). I just haven't been able to get back to this over the last few days :)

@sebersole
Copy link
Member

There really should not be much to do for this - I'm not sure what you want to "duplicate".

Anyway, as we are also looking to move to Bintray for publishing release artifacts and syncing to Central we will need to start publishing javadocs as well since Central requires it. We had previously gotten around that, but we will no longer be able to. So I'll likely just do this

@smoothreggae
Copy link
Author

The duplication should only be in the configuration for the JavaDoc.

@sebersole
Copy link
Member

I implemented this myself : #2097

@sebersole sebersole closed this Dec 22, 2017
@smoothreggae
Copy link
Author

Cool, @sebersole. I was just about to push a working alternative.

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.

3 participants