Skip to content

Commit

Permalink
fix: improve error messages and readme mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
almogtavor committed Jul 9, 2022
1 parent 20c44e0 commit 4556dcf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#🏗️ Auto Composite Build
# 🏗️ Auto Composite Build

A Gradle plugin that can be used to prevent the paths references problem of the Gradle's composite build feature.
Currently, composite builds works in such way that if a team uses this for a common logic project,
Expand Down Expand Up @@ -49,7 +49,7 @@ computer #1
`build.gradle`
```kotlin
plugins {
id ("auto-composite-build") version ("1.0-SNAPSHOT")
id ("io.github.almogtavor.auto-composite-build") version "1.0.2"
}

autoCompositeBuild {
Expand Down Expand Up @@ -83,7 +83,7 @@ if (file(compositeBuildFileName).exists()) {
`build.gradle`
```groovy
plugins {
id "auto-composite-build" version "1.0.0"
id "io.github.almogtavor.auto-composite-build" version "1.0.2"
}
autoCompositeBuild {
Expand All @@ -99,7 +99,9 @@ if (file(compositeBuildFileName).exists()) {
apply from: compositeBuildFileName
if (modulesPaths != null) {
for (modulePath in modulesPaths) {
includeBuild(modulePath)
if (new File(modulePath.toString()).exists()) {
includeBuild(modulePath)
}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ plugins {
}

group = 'io.github.almogtavor'
version = '1.0.0'
version = '1.0.2'


// Specify plugin properties that apply to the whole publishing bundle (ie. all plugins in the current publication).
pluginBundle { // Removed in Gradle 8+
pluginBundle {
website = 'https://github.com/almogtavor'
vcsUrl = 'https://github.com/almogtavor/auto-composite-build'

// Individual tags for published plugins; overrides bundle tags for the mentioned plugins.
// The keys used to specify the plugins must match the names of the blocks in 'gradlePlugin.plugins' (see below).
pluginTags = [
autoCompositeBuildPlugin: ['gradle', 'composite-build']
autoCompositeBuildPlugin: ['composite-build']
]
}

gradlePlugin {
plugins {
autoCompositeBuildPlugin {
id = 'auto-composite-build'
id = 'io.github.almogtavor.auto-composite-build'
implementationClass = 'io.github.almogtavor.AutoCompositeBuildPlugin'
displayName = 'A Gradle plugin to automate the process of working with composite builds'
description = 'This Gradle plugin let you easily use composite build within a team.'
description = 'This Gradle plugin lets you easily use composite build within a team.'
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ private void fillListOfModulesPathsToInclude(List<String> modules, List<String>
boolean isModuleExists = addModuleToListIfExists(listOfModulesPathsToInclude, module, lines);
if (!isModuleExists) {
getLogger().log(LogLevel.ERROR,
String.format("Module does not exists in the \"$USER_HOME\\%s\\%s\" file. " +
String.format("Module %s does not exists in the \"$USER_HOME\\%s\\%s\" file. " +
"Configure it properly and re-run the task.",
module,
GIT_DETAILS_DIR,
GIT_DETAILS_FILE_NAME));
}
Expand Down

0 comments on commit 4556dcf

Please sign in to comment.