Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix #5] Build with SBT instead of Maven. (Thanks Phil)

  • Loading branch information...
commit 56b818d9df7099f0a9efaf261c04f9039097635a 1 parent 1618476
@daithiocrualaoich daithiocrualaoich authored
View
6 .gitignore
@@ -1,6 +1,8 @@
-/target
+target
*.iml
*.ipr
*.iws
*~
-
+.idea
+project/boot
+project/plugins/boot
View
49 build.sbt
@@ -0,0 +1,49 @@
+name := "guardian-configuration"
+
+version := "3.0-SNAPSHOT"
+
+organization := "com.gu.conf"
+
+scalaVersion := "2.8.1"
+
+crossScalaVersions ++= Seq("2.9.0-1", "2.9.1")
+
+seq(ScalariformPlugin.settings: _*)
+
+resolvers ++= Seq(
+ "Scala Tools Repository" at "http://scala-tools.org/repo-releases",
+ "Guardian GitHub" at "http://guardian.github.com/maven/repo-releases"
+)
+
+libraryDependencies ++= Seq(
+ "commons-io" % "commons-io" % "1.4",
+ "commons-lang" % "commons-lang" % "2.4",
+ "org.slf4j" % "slf4j-api" % "1.6.1"
+)
+
+libraryDependencies ++= Seq(
+ "org.hamcrest" % "hamcrest-all" % "1.1" % "test",
+ "org.mockito" % "mockito-all" % "1.8.5" % "test",
+ "junit" % "junit" % "4.8.2" % "test",
+ "com.google.collections" % "google-collections" % "1.0" % "test",
+ "org.slf4j" % "slf4j-simple" % "1.6.1" % "test",
+ "com.novocode" % "junit-interface" % "0.6" % "test->default"
+)
+
+publishTo <<= (version) { version: String =>
+ val publishType = if (version.endsWith("SNAPSHOT")) "snapshots" else "releases"
+ Some(
+ Resolver.file(
+ "guardian github " + publishType,
+ file(System.getProperty("user.home") + "/guardian.github.com/maven/repo-" + publishType)
+ )
+ )
+}
+
+maxErrors := 20
+
+javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
+
+scalacOptions += "-deprecation"
+
+
View
BIN  dev/sbt-launch-0.10.1.jar
Binary file not shown
View
123 pom.xml
@@ -1,123 +0,0 @@
-<!--
- ~ Copyright 2010 Guardian News and Media
- ~
- ~ 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.
- -->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.gu</groupId>
- <artifactId>configuration</artifactId>
- <version>3.0</version>
- <name>Configuration Property Utils</name>
-
- <parent>
- <artifactId>guardian-parent</artifactId>
- <groupId>com.gu</groupId>
- <version>2.0</version>
- </parent>
-
- <properties>
- <hamcrest.version>1.1</hamcrest.version>
- <mockito.version>1.8.5</mockito.version>
- <junit.version>4.8.2</junit.version>
- <slf4j.version>1.6.1</slf4j.version>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.4</version>
- </dependency>
-
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.4</version>
- </dependency>
-
- <!-- NB: as a good citizen this library depends only on the slf4j API.
- It's up to users of the library to pick their implementor -->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <version>${slf4j.version}</version>
- </dependency>
-
- <!-- Test Dependencies -->
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- <version>${hamcrest.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>${mockito.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.google.collections</groupId>
- <artifactId>google-collections</artifactId>
- <version>1.0</version>
- <scope>test</scope>
- </dependency>
-
- <!-- when running tests ONLY, use the simple slf4j logger implementation -->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- <version>${slf4j.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <distributionManagement>
- <!-- to do a release, you will need to clone git@github.com:guardian/guardian.github.com.git
- to a directory under your home directory. After release:perform, add commit & push -->
- <repository>
- <id>guardian-github-releases</id>
- <url>file:///${user.home}/guardian.github.com/maven/repo-releases</url>
- </repository>
- </distributionManagement>
-
- <scm>
- <connection>scm:git:http://github.com/guardian/guardian-configuration.git</connection>
- <developerConnection>scm:git:ssh://git@github.com/guardian/guardian-configuration.git</developerConnection>
- <url>http://github.com/guardian/guardian-configuration</url>
- </scm>
-
- <licenses>
- <license>
- <name>Apache 2</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- </license>
- </licenses>
-
- <repositories>
- <repository>
- <id>guardian-github-releases</id>
- <url>http://guardian.github.com/maven/repo-releases</url>
- </repository>
- </repositories>
-
-
-</project>
View
4 project/plugins/build.sbt
@@ -0,0 +1,4 @@
+resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases"
+
+libraryDependencies += "com.typesafe.sbt-scalariform" %% "sbt-scalariform" % "0.1.2"
+
View
5 sbt
@@ -0,0 +1,5 @@
+#!/bin/sh
+if test -f ~/.sbtconfig; then
+ . ~/.sbtconfig
+fi
+exec java -Xmx2048M ${SBT_OPTS} -jar ./dev/sbt-launch-0.10.1.jar "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.