File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -81,15 +81,16 @@ test {
8181 }
8282}
8383
84- task createClasspathManifest {
85- File outputDir = file(" $b uildDir / $ name " )
84+ tasks . register( ' createClasspathManifest' ) {
85+ var outputFile = layout . buildDirectory . file(" $name /plugin-classpath.txt " )
8686
8787 inputs. files sourceSets. main. runtimeClasspath
88- outputs. dir outputDir
88+ outputs. file outputFile
8989
9090 doLast {
91- outputDir. mkdirs()
92- file(" $outputDir /plugin-classpath.txt" ). text = sourceSets. main. runtimeClasspath. join(' \n ' )
91+ File file = outputFile. get(). asFile
92+ file. parentFile. mkdirs()
93+ file. text = sourceSets. main. runtimeClasspath. join(' \n ' )
9394 }
9495}
9596
@@ -114,10 +115,12 @@ gradlePlugin {
114115
115116publishing { // used for publishing to local maven repository
116117 publications {
117- pluginMaven( MavenPublication ) {
118+ create( " pluginMaven " , MavenPublication ) {
118119 groupId = ' org.javamodularity'
119120 artifactId = ' moduleplugin'
120121 version = project. version
121122 }
122123 }
123124}
125+
126+ defaultTasks(" check" )
You can’t perform that action at this time.
0 commit comments