From 6df6beb38d9b7c31fa92216a02fe04b60727fe5b Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 24 Aug 2021 21:28:40 +0800 Subject: [PATCH] Replace license plugin usage --- build.gradle | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index bd5cbd95..37967c1b 100644 --- a/build.gradle +++ b/build.gradle @@ -40,16 +40,14 @@ buildscript { repositories { mavenCentral() + gradlePluginPortal() } dependencies { classpath "gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0" + classpath "gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1" } } -plugins { - id 'com.github.hierynomus.license' version '0.16.1' -} - apply from: 'gradle/functions.gradle' version = '2.5.1' @@ -59,7 +57,8 @@ defaultTasks 'build', 'shadowJar', 'proguard' allprojects { apply plugin: 'java' - apply plugin: 'license' + apply plugin: 'com.github.hierynomus.license' + sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8