This repository has been archived by the owner on Mar 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build.sbt): update libraries + add a common build object to dow…
…nload bluecove refactoring(libraries): extract unmanaged dependencies inside a root folder Use a root folder to store external dependencies. Fix a bug with sigar (closes #75).
- Loading branch information
Showing
133 changed files
with
244 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,5 @@ target/ | |
.worksheet | ||
|
||
#bluecove | ||
*/*/bluecove* | ||
*bluecove* | ||
|
||
#tokens | ||
secrets.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,7 @@ | ||
name := "powerapi" | ||
|
||
version in ThisBuild := "3.4" | ||
|
||
scalaVersion in ThisBuild := "2.11.6" | ||
|
||
scalacOptions in ThisBuild ++= Seq( | ||
"-language:reflectiveCalls", | ||
"-language:implicitConversions", | ||
"-feature", | ||
"-deprecation" | ||
) | ||
|
||
// Logging | ||
libraryDependencies in ThisBuild ++= Seq( | ||
"org.apache.logging.log4j" % "log4j-api" % "2.3", | ||
"org.apache.logging.log4j" % "log4j-core" % "2.3" | ||
"org.apache.logging.log4j" % "log4j-api" % "2.5", | ||
"org.apache.logging.log4j" % "log4j-core" % "2.5" | ||
) | ||
|
||
parallelExecution in (ThisBuild, Test) := false |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
~ This software is licensed under the GNU Affero General Public License, quoted below. | ||
~ | ||
~ This file is a part of PowerAPI. | ||
~ | ||
~ Copyright (C) 2011-2016 Inria, University of Lille 1. | ||
~ | ||
~ PowerAPI is free software: you can redistribute it and/or modify | ||
~ it under the terms of the GNU Affero General Public License as | ||
~ published by the Free Software Foundation, either version 3 of | ||
~ the License, or (at your option) any later version. | ||
~ | ||
~ PowerAPI is distributed in the hope that it will be useful, | ||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
~ GNU Affero General Public License for more details. | ||
~ | ||
~ You should have received a copy of the GNU Affero General Public License | ||
~ along with PowerAPI. | ||
~ | ||
~ If not, please consult http://www.gnu.org/licenses/agpl-3.0.html. | ||
--> | ||
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | ||
|
||
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | ||
<appender name="console" class="org.apache.log4j.ConsoleAppender"> | ||
<param name="Target" value="System.out"/> | ||
<layout class="org.apache.log4j.PatternLayout"> | ||
<param name="ConversionPattern" value="[%level] [%d{MM/dd/yyyy HH:mm:ss.SSS}] [%t] [%logger{36}] - %msg%n"/> | ||
</layout> | ||
</appender> | ||
|
||
<root> | ||
<priority value="error" /> | ||
<appender-ref ref="console" /> | ||
</root> | ||
</log4j:configuration> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,32 @@ | ||
enablePlugins(JavaServerAppPackaging) | ||
|
||
name := "powerapi-daemon" | ||
|
||
libraryDependencies ++= Seq( | ||
"commons-daemon" % "commons-daemon" % "1.0.15" | ||
) | ||
|
||
lazy val downloadBluecoveDaemon = taskKey[File]("download-bluecove-daemon") | ||
lazy val downloadBluecoveGplDaemon = taskKey[File]("download-bluecove-gpl-daemon") | ||
mappings in Universal += downloadBluecove.value -> s"lib/${downloadBluecove.value.name}" | ||
|
||
downloadBluecoveDaemon := { | ||
val locationBluecove = baseDirectory.value / "lib" / "bluecove-2.1.0.jar" | ||
if(!locationBluecove.getParentFile.exists()) locationBluecove.getParentFile.mkdirs() | ||
if(!locationBluecove.exists()) IO.download(url("https://bluecove.googlecode.com/files/bluecove-2.1.0.jar"), locationBluecove) | ||
locationBluecove | ||
} | ||
mappings in Universal += downloadBluecoveGpl.value -> s"lib/${downloadBluecoveGpl.value.name}" | ||
|
||
downloadBluecoveGplDaemon := { | ||
val locationBluecoveGpl = baseDirectory.value / "lib" / "bluecove-gpl-2.1.0.jar" | ||
if(!locationBluecoveGpl.getParentFile.exists()) locationBluecoveGpl.getParentFile.mkdirs() | ||
if(!locationBluecoveGpl.exists()) IO.download(url("https://bluecove.googlecode.com/files/bluecove-gpl-2.1.0.jar"), locationBluecoveGpl) | ||
locationBluecoveGpl | ||
mappings in Universal ++= { | ||
val dir = baseDirectory.value.getParentFile | ||
|
||
(for { | ||
(file, relativePath) <- (dir * "README*" --- dir) pair relativeTo (dir) | ||
} yield file -> s"$relativePath") ++ | ||
(for { | ||
(file, relativePath) <- (dir * "LICENSE*" --- dir) pair relativeTo (dir) | ||
} yield file -> s"$relativePath") | ||
} | ||
|
||
mappings in Universal += downloadBluecoveDaemon.value -> s"lib/${downloadBluecoveDaemon.value.name}" | ||
|
||
mappings in Universal += downloadBluecoveGplDaemon.value -> s"lib/${downloadBluecoveGplDaemon.value.name}" | ||
|
||
mappings in Universal ++= { | ||
((file("../") * "README*").get map { | ||
readmeFile: File => | ||
readmeFile -> readmeFile.getName | ||
}) ++ | ||
((file("../") * "LICENSE*").get map { | ||
licenseFile: File => | ||
licenseFile -> licenseFile.getName | ||
}) | ||
val dir = baseDirectory.value.getParentFile / "external-libs" / "sigar-bin" | ||
|
||
for { | ||
(file, relativePath) <- (dir.*** --- dir) pair relativeTo(dir) | ||
} yield file -> s"/lib/sigar-bin/$relativePath" | ||
} | ||
|
||
scriptClasspath ++= Seq("../conf", "../scripts") | ||
|
||
NativePackagerKeys.executableScriptName := "powerapid" | ||
|
Oops, something went wrong.