Last active
February 6, 2019 15:00
Star
You must be signed in to star a gist
Example gradle multiproject with deprecated usage
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
buildscript { | |
repositories { | |
maven { url 'https://plugins.gradle.org/m2/' } | |
} | |
dependencies { | |
classpath 'com.gradle:build-scan-plugin:2.1' | |
} | |
} | |
apply plugin: 'com.gradle.build-scan' | |
buildScan { | |
publishAlways() | |
server = 'http://localhost:5050' | |
} |
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
rootProject.buildFileName = 'multiproject-with-deprecations.gradle' | |
def buildSize = 100 | |
buildSize.times { | |
include "sub$it" | |
def subFolder = new File("sub$it") | |
subFolder.mkdirs() | |
def subBuildFile = new File(f, "build.gradle") | |
subBuildFile.text = """ | |
class CustomTask extends DefaultTask { | |
@OutputFile | |
RegularFileProperty target = newOutputFile() | |
@InputFile | |
@PathSensitive(PathSensitivity.RELATIVE) | |
RegularFileProperty inFile = newInputFile() | |
@OutputDirectory | |
DirectoryProperty outputDir = newOutputDirectory() | |
} | |
apply plugin:'findbugs' | |
tasks.create('customTask', CustomTask) | |
""" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment