blob: 90d4ddc0f72808bd09f441a5fcb9642e5045a37d [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
description = 'Java Chassis::Samples::CodeFirst::Consumer'
dependencies {
compile group: 'org.apache.servicecomb', name: 'provider-pojo'
compile group: 'org.apache.servicecomb', name: 'transport-highway'
compile group: 'org.apache.servicecomb', name: 'transport-rest-vertx'
compile group: 'org.apache.servicecomb.samples', name: 'common-schema', version: '1.0.0-SNAPSHOT'
compile group: 'org.slf4j', name: 'slf4j-log4j12'
}
apply plugin: 'application'
mainClassName = 'org.apache.servicecomb.samples.codefirst.consumer.CodeFirstConsumerMain'
// dependency-management-plugin is a replacement of dependencyManagement in maven
// we need to enable the plugin and specify the dependencyManagement in the following form in each submodule
// according to the official document: https://github.com/spring-gradle-plugins/dependency-management-plugin.
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath('io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE')
}
}
apply plugin: 'io.spring.dependency-management'
dependencyManagement {
imports {
mavenBom 'org.apache.servicecomb:java-chassis-dependencies:1.0.0-SNAPSHOT'
}
}