Permalink
Browse files

Revert "Changes as requested"

This reverts commit 3089a76.
  • Loading branch information...
1 parent 3089a76 commit 22bf137a5f72b6052b78406495f22024884d63dc @robdrysdale committed Dec 8, 2011
Showing with 0 additions and 154 deletions.
  1. +0 −154 build.gradle
View
@@ -1,154 +0,0 @@
-/*
- * Copyright 2010 the original author or authors.
- *
- * Licensed 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.
- */
- import org.springframework.build.Version
-
-// -----------------------------------------------------------------------------
-// Main gradle build file for Spring Social LinkedIn
-// @author Chris Beams
-// @author Craig Walls
-// -----------------------------------------------------------------------------
-
-// -----------------------------------------------------------------------------
-// Configuration for the root project
-// -----------------------------------------------------------------------------
-description = 'Spring Social LinkedIn'
-abbreviation = 'SOCIAL-LINKEDIN'
-
-apply plugin: 'base'
-apply plugin: 'idea'
-
-def buildSrcDir = "$rootDir/buildSrc"
-apply from: "$buildSrcDir/wrapper.gradle"
-apply from: "$buildSrcDir/maven-root-pom.gradle"
-
-// -----------------------------------------------------------------------------
-// Configuration for all projects including this one (the root project)
-//
-// @see settings.gradle for list of all subprojects
-// -----------------------------------------------------------------------------
-allprojects {
- // group will translate to groupId during pom generation and deployment
- group = 'org.springframework.social'
-
- // version will be used in maven pom generation as well as determining
- // where artifacts should be deployed, based on release type of snapshot,
- // milestone or release.
- // @see org.springframework.build.Version under buildSrc/ for more info
- // @see gradle.properties for the declaration of this property.
- version = new Version(springSocialLinkedInVersion)
-
- // default set of maven repositories to be used when resolving dependencies
- repositories {
- mavenRepo urls: 'http://maven.springframework.org/release'
- mavenRepo urls: 'http://maven.springframework.org/milestone'
- mavenRepo urls: 'http://maven.springframework.org/snapshot'
- mavenCentral()
- }
-}
-
-
-// -----------------------------------------------------------------------------
-// Create collections of subprojects - each will receive their own configuration
-// - all subprojects that start with spring-social-* are 'java projects'
-// - documentation-related subprojects are not collected here
-//
-// @see configure(*) sections below
-// -----------------------------------------------------------------------------
-
-javaprojects = subprojects.findAll { project ->
- project.path.startsWith(':spring-social-')
-}
-
-// -----------------------------------------------------------------------------
-// Configuration for all java subprojects
-// -----------------------------------------------------------------------------
-configure(javaprojects) {
-
- apply plugin: 'java' // tasks for conventional java lifecycle
- apply plugin: 'maven' // `gradle install` to push jars to local .m2 cache
- apply plugin: 'eclipse' // `gradle eclipse` to generate .classpath/.project
- apply plugin: 'idea' // `gradle idea` to generate .ipr/.iml
-
- // set up dedicated directories for jars and source jars.
- // this makes it easier when putting together the distribution
- libsBinDir = new File(libsDir, 'bin')
- libsSrcDir = new File(libsDir, 'src')
-
- // add tasks for creating source jars and generating poms etc
- apply from: "$buildSrcDir/maven-deployment.gradle"
-
- // add tasks for finding and publishing .xsd files
- apply from: "$buildSrcDir/schema-publication.gradle"
-
- springSocialVersion = '1.0.1.BUILD-SNAPSHOT'
- jacksonVersion = '1.9.2'
- junitVersion = '4.8.2'
- mockitoVersion = '1.8.5'
- springVersion = '3.1.0.BUILD-SNAPSHOT'
- springSecurityVersion = '3.1.0.RELEASE'
-
- sourceSets {
- main {
- resources {
- srcDirs = ['src/main/java']
- }
- }
- test {
- resources {
- srcDirs = ['src/test/java']
- }
- }
- }
-
- // dependencies that are common across all java projects
- dependencies {
- testCompile "junit:junit:$junitVersion"
- testCompile "org.mockito:mockito-all:$mockitoVersion"
- testCompile "org.springframework:spring-test:$springVersion"
- }
-
- // enable all compiler warnings (GRADLE-1077)
- [compileJava, compileTestJava]*.options*.compilerArgs = ['-Xlint:all']
-
- // generate .classpath files without GRADLE_CACHE variable (GRADLE-1079)
- eclipseClasspath.variables = [:]
-}
-
-// -----------------------------------------------------------------------------
-// Configuration for each individual core java subproject
-//
-// @see configure(javaprojects) above for general config
-// -----------------------------------------------------------------------------
-
-project('spring-social-linkedin') {
- description = 'LinkedIn API'
- dependencies {
- compile "org.springframework.social:spring-social-core:$springSocialVersion"
- compile "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion"
- testCompile "org.springframework.social:spring-social-test:$springSocialVersion"
- testCompile "org.springframework.security:spring-security-crypto:$springSecurityVersion"
- }
-}
-
-// -----------------------------------------------------------------------------
-// Configuration for the docs subproject
-// -----------------------------------------------------------------------------
-project('docs') {
- apply from: "$buildSrcDir/docs.gradle"
-}
-
-apply from: "$buildSrcDir/dist.gradle"
-apply from: "$buildSrcDir/checks.gradle"

0 comments on commit 22bf137

Please sign in to comment.