Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove unused imports
  • Loading branch information
clayton committed Aug 3, 2017
1 parent 6c5db59 commit 0c088eb
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -17,7 +17,7 @@ EOF
# copy our java trust store and add our self signed cert
cp /Library/Java/JavaVirtualMachines/jdk1.8.0_72.jdk/Contents/Home/jre/lib/security/cacerts .
#echo -n | openssl s_client -connect foo.shh.mpg.de:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > foo.crt
# The above fails becuase this server has multiple identities (i.e. the first is bar-foo.mpg.shh.de but we want foo.shh.mpg.de)
# The above fails becuase this server has multiple identities (i.e. the first is bar-foo.shh.mpg.de but we want foo.shh.mpg.de)
echo -n | openssl s_client -connect foo.shh.mpg.de:443 -servername foo.shh.mpg.de | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > foo.crt
keytool -import -keystore cacerts -trustcacerts -storepass changeit -noprompt -alias foo -file foo.crt
# test using our trust store copy with our self signed cert installed
Expand Down
40 changes: 40 additions & 0 deletions bin/install.sh
@@ -0,0 +1,40 @@
#!/usr/bin/env bash

numArgs=$#

set -e -o pipefail

function die() {
MESG="${1:-Died}"
echo "${MESG}" >&2
exit 1
}


if [[ !$numArgs -gt 0 ]]; then
die "Please supply a version number e.g. 0.0.1"
fi

group="de.mpg.shh"
artifact="util-webdav"
version=$1

lein clean
lein deps
lein jar
lein pom

test -f "target/${artifact}-${version}.jar" || die "Build failed: jar not found"

lein localrepo install -p pom.xml target/${artifact}-${version}.jar ${group}/${artifact} ${version}

# create sha1sums for the jar and pom
group_path=$(echo "${group}" | tr "." "/")
jar_path="${HOME}/.m2/repository/${group_path}/${artifact}/${version}/${artifact}-${version}.jar"
jar_sum_path="${jar_path}.sha1"

pom_path="${HOME}/.m2/repository/${group_path}/${artifact}/${version}/${artifact}-${version}.pom"
pom_sum_path="${pom_path}.sha1"

shasum ${jar_path} | cut -d ' ' -f 1 > ${jar_sum_path}
shasum ${pom_path} | cut -d ' ' -f 1 > ${pom_sum_path}
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject de.mpg.shh/webdav "0.0.1"
(defproject de.mpg.shh/util-webdav "0.0.1"
:description "LIMS for ssh"
:url "http://www.shh.mpg.de/"
:license {:name "Eclipse Public License"
Expand Down
5 changes: 1 addition & 4 deletions src/main/clojure/de/mpg/shh/util_webdav/client.clj
Expand Up @@ -4,10 +4,7 @@
[clojure.edn :as edn])
(import [java.util Collections]
[java.nio.file Files]
[java.io ByteArrayInputStream]
[org.apache.http.conn.ssl SSLContextBuilder]
[org.apache.http.impl.client HttpClients]
[com.github.sardine.impl SardineImpl SardineException SardineRedirectStrategy]
[com.github.sardine.impl SardineImpl SardineException]
[com.github.sardine.util SardineUtil]
[javax.xml.namespace QName]))

Expand Down

0 comments on commit 0c088eb

Please sign in to comment.