File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ ext.githubProjectName = rootProject.name // TEMPLATE: change to match github pro
44
55buildscript {
66 repositories { mavenCentral() }
7+ apply from : file(' gradle/buildscript.gradle' ), to : buildscript
78}
89
910allprojects {
@@ -14,7 +15,7 @@ allprojects {
1415apply from : file(' gradle/convention.gradle' )
1516apply from : file(' gradle/maven.gradle' )
1617apply from : file(' gradle/check.gradle' )
17- // apply from: file('gradle/license.gradle') // Waiting for re-release
18+ apply from : file(' gradle/license.gradle' )
1819
1920subprojects {
2021 // Closure to configure all the POM with extra info, common to all projects
@@ -44,6 +45,7 @@ subprojects {
4445}
4546
4647project(' :template-client' ) {
48+ apply plugin : ' java'
4749 dependencies {
4850 compile ' org.slf4j:slf4j-api:1.6.3'
4951 compile ' com.sun.jersey:jersey-client:1.11'
Original file line number Diff line number Diff line change 1- Copyright 2012 Netflix, Inc.
1+ Copyright ${year} Netflix, Inc.
22
33Licensed under the Apache License, Version 2.0 (the "License");
44you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1+ // Executed in context of buildscript
2+ dependencies { classpath ' nl.javadude.gradle.plugins:license-gradle-plugin:0.6.0' }
3+
Original file line number Diff line number Diff line change 1- buildscript {
2- dependencies { classpath ' nl.javadude.gradle.plugins:license-gradle-plugin:0.5' }
3- }
1+ // Dependency for plugin was set in buildscript.gradle
42
5- apply plugin : nl.javadude.gradle.plugins.license.LicensePlugin
3+ subprojects {
4+ apply plugin : ' license' // nl.javadude.gradle.plugins.license.LicensePlugin
5+ license {
6+ header rootProject. file(' codequality/HEADER' )
7+ ext. year = Calendar . getInstance(). get(Calendar . YEAR )
8+ }
9+ }
You can’t perform that action at this time.
0 commit comments