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

aggregateJavadocJar tries to create Javadoc jar with abnormally huge file size #640

Open
TetraTheta opened this issue Nov 24, 2022 · 5 comments

Comments

@TetraTheta
Copy link

I'm trying to use io.freefair.aggregate-javadoc-jar (version: 6.6-rc1) to create 'All-In-One Javadoc'.

aggregateJavadoc task created AIO Javadoc well, but aggregateJavadocJar tries to create Javadoc jar file with abnormally huge file size.
Since my project is small project, created javadoc jar file size should be small, not over 900MB or 6GB. The file size gets bigger if I don't force-stop build soon enough.

My current build script is this:

plugins {
  `java-library`
  `maven-publish`
  id("com.github.johnrengelman.shadow") version("7.1.2")
  id("io.freefair.aggregate-javadoc-jar") version "6.6-rc1"
}

dependencies {
  implementation(project(":bukkit_1_19_R1", "reobf")) {
    isTransitive = false
  }
  implementation(project(":core"))
}

tasks {
  java {
    toolchain.languageVersion.set(JavaLanguageVersion.of(17))
  }
  build {
    dependsOn(shadowJar)
  }
  shadowJar {
    archiveClassifier.set("")
  }
}

allprojects {
  group = "com.github.exmsrv"
  version = "1.0.0-SNAPSHOT"
}
@file:Suppress("UnstableApiUsage")
dependencyResolutionManagement {
  repositories {
    mavenCentral()
    maven("https://repo.papermc.io/repository/maven-public/")
  }

  pluginManagement {
    repositories {
      gradlePluginPortal()
      mavenCentral()
      maven("https://repo.papermc.io/repository/maven-public/")
    }
  }
}

rootProject.name = "mol"

include("core")
include("bukkit_1_19_R1")
@mfnalex
Copy link

mfnalex commented May 27, 2023

#798 I got the same issue, unfortunately. Have you find any fix @TetraTheta ?

@TetraTheta
Copy link
Author

No, I just gave up using this gradle plugin.
I haven't find any alternatives, but I would just rather use buildSrc stuff for this.

@mfnalex
Copy link

mfnalex commented May 27, 2023

Shoot. Thank you anyway for the reply! The weird thing is that aggregateJavadoc works fine, it's only the .jar thing that fails D:

@mfnalex
Copy link

mfnalex commented May 27, 2023

Found a fix thanks to @Geolykt -> #798 (comment)

@TetraTheta
Copy link
Author

TetraTheta commented May 27, 2023

Thank you for letting me know about that! I will try again when I make my own library again (I gave up making my own library because of this 😞 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants