1
1
/*
2
- * Copyright DataStax, Inc.
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
3
9
*
4
- * Please see the included license file for details.
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
5
17
*/
18
+ plugins {
19
+ id ' dev.clojurephant.clojure' version ' 0.5.0'
20
+ id ' maven-publish'
21
+ }
22
+
23
+ description = " Cassandra/DSE Configuration Builder Library"
24
+ group = ' datastax'
25
+ version = ' 0.1.0-SNAPSHOT'
26
+
27
+ repositories {
28
+ mavenCentral()
29
+ maven {
30
+ name = ' clojars'
31
+ url = ' https://repo.clojars.org'
32
+ }
33
+ }
34
+
35
+ sourceCompatibility = 1.8
36
+ targetCompatibility = 1.8
6
37
7
- description = " DataStax Configuration Builder Library"
38
+ clojure {
39
+ builds {
40
+ main {
41
+ aotAll()
42
+ }
43
+ }
44
+ }
8
45
9
46
sourceSets {
10
47
main {
@@ -40,16 +77,39 @@ configurations {
40
77
}
41
78
42
79
dependencies {
43
- compile " org.clojure:core.match:0.3.0-alpha5"
44
- compile " org.clojure:core.memoize:0.5.9"
45
- compile " slingshot:slingshot:0.12.2"
46
- compile " org.yaml:snakeyaml:1.23"
47
- compile " cheshire:cheshire:5.8.0"
48
- compile (" selmer:selmer:0.9.7" ) { // templating lib
80
+ implementation " org.clojure:clojure:1.10.1"
81
+ implementation " org.clojure:core.match:0.3.0-alpha5"
82
+ implementation " org.clojure:core.memoize:0.5.9"
83
+ implementation " slingshot:slingshot:0.12.2"
84
+ implementation " org.yaml:snakeyaml:1.23"
85
+ implementation " cheshire:cheshire:5.8.0"
86
+ implementation (" selmer:selmer:0.9.7" ) { // templating lib
49
87
exclude module : ' hiccups'
50
88
exclude module : ' cheshire'
51
89
exclude group : ' com.fasterxml.jackson.core' , module : ' jackson-core'
52
90
exclude group : ' com.fasterxml.jackson.dataformat' , module : ' jackson-dataformat-smile'
53
91
}
54
- testCompile " junit:junit:4.12"
55
- }
92
+ devImplementation " org.clojure:tools.namespace:0.3.0-alpha4"
93
+ testImplementation " junit:junit:4.12"
94
+ }
95
+
96
+
97
+ publishing {
98
+ publications {
99
+ main(MavenPublication ) {
100
+ from components. java
101
+ }
102
+ }
103
+
104
+ /* TODO: point to artifactory */
105
+ repositories {
106
+ maven {
107
+ name = ' clojars'
108
+ url = ' https://repo.clojars.org'
109
+ credentials {
110
+ username = System . env[' CLOJARS_USER' ]
111
+ password = System . env[' CLOJARS_PASSWORD' ]
112
+ }
113
+ }
114
+ }
115
+ }
0 commit comments