-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
112 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
buildSrc/src/main/kotlin/co/raccoons/local/gradle/BuildConfiguration.kt
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
buildSrc/src/main/kotlin/co/raccoons/local/gradle/Defaults.kt
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
buildSrc/src/main/kotlin/co/raccoons/local/gradle/GradleBuild.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package co.raccoons.local.gradle | ||
|
||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
|
||
/** | ||
* Gradle build configurator. | ||
*/ | ||
class GradleBuild private constructor() { | ||
|
||
companion object { | ||
|
||
/** | ||
* Returns build configuration handler of this project. | ||
*/ | ||
fun of(project: Project): ConfigurationHandler { | ||
|
||
/** | ||
* Build configuration handler that applies configuration to project. | ||
*/ | ||
class BuildConfigurationHandler(private val project: Project) : ConfigurationHandler { | ||
override fun use(plugin: Plugin<Project>): ConfigurationHandler { | ||
plugin.apply(this.project) | ||
return this | ||
} | ||
} | ||
return BuildConfigurationHandler(project) | ||
} | ||
} | ||
|
||
fun interface ConfigurationHandler { | ||
fun use(plugin: Plugin<Project>): ConfigurationHandler | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
buildSrc/src/main/kotlin/co/raccoons/local/gradle/Presets.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package co.raccoons.local.gradle | ||
|
||
/** | ||
* Plugins version | ||
*/ | ||
enum class Presets(private val version: String) { | ||
CHECKSTYLE("10.12.2"); | ||
|
||
fun version() = version | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.