@@ -3,6 +3,7 @@ import java.text.SimpleDateFormat
33ext. projectConfig = [
44 " group" : ' io.nullables.api.sample' ,
55 " version" : ' 1.0.0-SNAPSHOT' ,
6+ " title" : " java-samples" ,
67 " module" : " gradle-java-sample" ,
78 " description" : " Gradle java sample project" ,
89 " url" : " https://github.com/AlexRogalskiy/gradle-java-sample" ,
9293 final Date buildTimeAndDate = new Date ()
9394 buildDate = new SimpleDateFormat (' yyyy-MM-dd' ). format(buildTimeAndDate)
9495 buildTime = new SimpleDateFormat (' HH:mm:ss.SSSZ' ). format(buildTimeAndDate)
96+ // String.format("%tFT%<tRZ", Calendar.getInstance(TimeZone.getTimeZone("Z")))
97+ // buildVersion = versioning.info.commit
98+ buildWith = " gradle-${ project.getGradle().getGradleVersion()} , groovy-${ GroovySystem.getVersion()} "
99+ buildOs = " ${ System.properties['os.name']} ${ System.properties['os.arch']} ${ System.properties['os.version']} "
100+
101+ githubUrl = " https://github.com/AlexRogalskiy/${ project.name} "
102+ issuesUrl = " ${ project.githubUrl} /issues"
103+ vcsUrl = " ${ project.githubUrl} .git"
104+ vcsConnection = " scm:git:git://github.com/AlexRogalskiy/${ project.name} .git"
105+
106+ specTitle = " ${ projectConfig.title} "
107+ specVersion = " ${ projectConfig.version.substring(0, projectConfig.version.lastIndexOf('-'))} "
95108
96109 generatedSourcesDir = file(" ${ buildDir} /generated/sources" )
97110 generatedSourcesJavaDir = file(" ${ project.generatedSourcesDir} /main/java" )
111+ generatedSourcesKotlinDir = file(" ${ project.generatedSourcesDir} /main/kotlin" )
98112
99113 excludeJunit = { exclude group : ' junit' , module : ' junit' }
100114 excludeChecker = { exclude group : ' edu.washington.cs.types.checker' , module : ' checker-framework' }
0 commit comments