Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit a5a70b2

Browse files
authored
move ArtipieStorage to a separate module (#474)
* move ArtipieStorage to a separate module * fix a lint violation * fix review comments
1 parent 2970bc8 commit a5a70b2

File tree

7 files changed

+81
-11
lines changed

7 files changed

+81
-11
lines changed

asto-artipie/pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
The MIT License (MIT)
4+
5+
Copyright (c) 2020-2022 artipie.com
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included
15+
in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
-->
25+
<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/xsd/maven-4.0.0.xsd">
26+
<parent>
27+
<artifactId>asto</artifactId>
28+
<groupId>com.artipie</groupId>
29+
<version>1.0-SNAPSHOT</version>
30+
</parent>
31+
<modelVersion>4.0.0</modelVersion>
32+
<artifactId>asto-artipie</artifactId>
33+
<dependencies>
34+
<dependency>
35+
<groupId>com.artipie</groupId>
36+
<artifactId>asto-core</artifactId>
37+
<version>1.0-SNAPSHOT</version>
38+
<scope>compile</scope>
39+
</dependency>
40+
<dependency>
41+
<groupId>com.artipie</groupId>
42+
<artifactId>http-client</artifactId>
43+
<version>0.3.9</version>
44+
<exclusions>
45+
<exclusion>
46+
<groupId>com.artipie</groupId>
47+
<artifactId>asto-core</artifactId>
48+
</exclusion>
49+
</exclusions>
50+
</dependency>
51+
</dependencies>
52+
</project>

asto-core/src/main/java/com/artipie/asto/ArtipieStorage.java renamed to asto-artipie/src/main/java/com/artipie/asto/ArtipieStorage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* Proxy storage for a file-adapter via HTTP.
3333
*
34-
* @since 1.11.0
34+
* @since 0.1
3535
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
3636
* @checkstyle LineLengthCheck (500 lines)
3737
*/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* The MIT License (MIT) Copyright (c) 2020-2022 artipie.com
3+
* https://github.com/artipie/asto/LICENSE.txt
4+
*/
5+
6+
/**
7+
* Artipie Storage.
8+
*
9+
* @since 0.1
10+
*/
11+
package com.artipie.asto;
12+

asto-core/src/test/java/com/artipie/asto/ArtipieStorageTest.java renamed to asto-artipie/src/test/java/com/artipie/asto/ArtipieStorageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/**
3737
* Test case for {@link ArtipieStorage}.
3838
*
39-
* @since 1.11.0
39+
* @since 0.1
4040
* @checkstyle ClassDataAbstractionCouplingCheck (500 lines)
4141
*/
4242
public final class ArtipieStorageTest {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* The MIT License (MIT) Copyright (c) 2020-2022 artipie.com
3+
* https://github.com/artipie/asto/LICENSE.txt
4+
*/
5+
6+
/**
7+
* Artipie Storage tests.
8+
*
9+
* @since 0.1
10+
*/
11+
package com.artipie.asto;
12+

asto-core/pom.xml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,8 @@ SOFTWARE.
3232
<artifactId>asto-core</artifactId>
3333
<dependencies>
3434
<dependency>
35-
<groupId>com.artipie</groupId>
36-
<artifactId>http-client</artifactId>
37-
<version>0.3.6</version>
38-
<exclusions>
39-
<exclusion>
40-
<groupId>com.artipie</groupId>
41-
<artifactId>asto</artifactId>
42-
</exclusion>
43-
</exclusions>
35+
<groupId>org.apache.commons</groupId>
36+
<artifactId>commons-lang3</artifactId>
4437
</dependency>
4538
<dependency>
4639
<groupId>com.google.guava</groupId>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ SOFTWARE.
8585
<module>asto-s3</module>
8686
<module>asto-vertx-file</module>
8787
<module>asto-etcd</module>
88+
<module>asto-artipie</module>
8889
</modules>
8990
<properties>
9091
<qulice.license>${project.basedir}/../LICENSE.header</qulice.license>

0 commit comments

Comments
 (0)