From ce17bbdd95559d794575e6344463433a0084cc95 Mon Sep 17 00:00:00 2001 From: shalousun <836575280@qq.com> Date: Tue, 16 May 2023 18:39:39 +0800 Subject: [PATCH] release 2.6.9 --- build.gradle | 4 ++-- src/main/java/com/smartdoc/gradle/task/DocBaseTask.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 29aee41..e6fbcb4 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ plugins { } group 'com.github.shalousun' -version '2.6.8' +version '2.6.9' sourceCompatibility = 1.8 @@ -29,7 +29,7 @@ repositories { } dependencies { - implementation group: 'com.github.shalousun', name: 'smart-doc', version: '2.6.8' + implementation group: 'com.github.shalousun', name: 'smart-doc', version: '2.6.9' } tasks.withType(JavaCompile) { options.encoding = "UTF-8" diff --git a/src/main/java/com/smartdoc/gradle/task/DocBaseTask.java b/src/main/java/com/smartdoc/gradle/task/DocBaseTask.java index e5e63f5..713c243 100644 --- a/src/main/java/com/smartdoc/gradle/task/DocBaseTask.java +++ b/src/main/java/com/smartdoc/gradle/task/DocBaseTask.java @@ -125,7 +125,7 @@ public void action() { /** * Classloading * - * @return + * @return JavaProjectBuilder */ private JavaProjectBuilder buildJavaProjectBuilder(Project project, Set excludes, Set includes) { // JavaProjectBuilder javaDocBuilder = new JavaProjectBuilder(); @@ -146,7 +146,7 @@ private JavaProjectBuilder buildJavaProjectBuilder(Project project, Set getLogger().quiet(MSG + src); javaDocBuilder.addSourceTree(src); }); - //sources.stream().map(File::new).forEach(javaDocBuilder::addSourceTree); +// sources.stream().map(File::new).forEach(javaDocBuilder::addSourceTree); // javaDocBuilder.addClassLoader(ClassLoaderUtil.getRuntimeClassLoader(project)); loadSourcesDependencies(javaDocBuilder, project, excludes, includes); return javaDocBuilder; @@ -172,7 +172,7 @@ private void loadSourcesDependencies(JavaProjectBuilder javaDocBuilder, Project .setArtifactId(version.getId().getName()) .setVersion(version.getId().getVersion()); // add local source - String artifactName = moduleArtifact.getGroup() + ":" + moduleArtifact.getArtifactId(); + String artifactName = moduleArtifact.getGroupId() + ":" + moduleArtifact.getArtifactId(); addModuleSourceTree(javaDocBuilder, allModules, artifactName); } @@ -180,7 +180,7 @@ private void loadSourcesDependencies(JavaProjectBuilder javaDocBuilder, Project if (ArtifactFilterUtil.ignoreArtifact(artifact) || ArtifactFilterUtil.ignoreSpringBootArtifactById(artifact)) { continue; } - String artifactName = artifact.getGroup() + ":" + artifact.getArtifactId(); + String artifactName = artifact.getGroupId() + ":" + artifact.getArtifactId(); if (RegexUtil.isMatches(excludes, artifactName)) { continue; }