Skip to content

Instantly share code, notes, and snippets.

package ru.d10xa.sample.config;
import org.h2.tools.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import java.sql.SQLException;
@Configuration
buildscript {
repositories {
maven {
def artifactoryUrl = this.hasProperty('artifactory_url') ? artifactory_url : 'http://localhost:8081/artifactory'
url "${artifactoryUrl}/plugins-release"
credentials {
username = this.hasProperty('artifactory_username') ? artifactory_username : 'admin'
password = this.hasProperty('artifactory_password') ? artifactory_password : 'password'
}
name = "maven-main-cache"