Using Gradle Plugins for common base structure

hi all,

we have a lot of gradle projects (Java Springboot apps) that use the same syntax on the build.gradle file, so we would like to make a common factor for these piece of code:

`
plugins {
id ‘org.springframework.boot’ version ‘2.2.4.RELEASE’
id ‘io.spring.dependency-management’ version ‘1.0.9.RELEASE’
id ‘com.gorylenko.gradle-git-properties’ version ‘2.1.0’
id ‘org.sonarqube’ version ‘2.7’
id ‘net.researchgate.release’ version ‘2.6.0’
id ‘com.github.spotbugs’ version ‘2.0.0’
id ‘com.jfrog.artifactory’ version ‘4.11.0’
}

apply plugin: ‘idea’
apply plugin: ‘java’
apply plugin: ‘io.spring.dependency-management’
apply plugin: ‘maven-publish’
apply plugin: ‘checkstyle’
apply plugin: ‘com.gorylenko.gradle-git-properties’
apply plugin: ‘jacoco’

apply from: ‘repos.gradle’ //our custom maven&gradle repositories
apply from: ‘artifactory.gradle’ // our jfrog plugin configuration
apply from: ‘release.gradle’ //our gradle-release-plugin configuration
apply from: ‘quality.gradle’ //our sonarqube plugin configuration
`

based on that we don’t know if is more convenient use Script Plugins or Build Plugins. Do you have any suggestions on that? Maybe I’m the wrong direction?

Thanks a lot,
Andrea