Skip to content

Commit 39329e0

Browse files
authored
REPO-5539 Add starter, autoconfig and library module (#4)
* REPO-5539 Add starter, autoconfig and library module Add base folders and poms for the alfresco-java-rest-api. Add editorconfig for project. * Add missing versions
1 parent c5a4422 commit 39329e0

File tree

9 files changed

+157
-4
lines changed

9 files changed

+157
-4
lines changed

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
12+
[*.java]
13+
indent_size = 4
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false
18+
19+
[Makefile]
20+
indent_style = tab
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.alfresco</groupId>
9+
<artifactId>alfresco-java-rest-api</artifactId>
10+
<version>5.0.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<artifactId>alfresco-java-rest-api-lib</artifactId>
14+
<name>Alfresco Java Rest API :: Rest Clients</name>
15+
16+
17+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.alfresco</groupId>
9+
<artifactId>alfresco-java-rest-api</artifactId>
10+
<version>5.0.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<artifactId>alfresco-java-rest-api-spring-boot-starter</artifactId>
14+
<name>Alfresco Java Rest API :: Spring Boot Starter</name>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.alfresco</groupId>
19+
<artifactId>alfresco-java-rest-api-spring-boot</artifactId>
20+
<version>${project.version}</version>
21+
</dependency>
22+
23+
<dependency>
24+
<groupId>org.alfresco</groupId>
25+
<artifactId>alfresco-java-rest-api-lib</artifactId>
26+
<version>${project.version}</version>
27+
</dependency>
28+
</dependencies>
29+
30+
31+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.alfresco</groupId>
9+
<artifactId>alfresco-java-rest-api</artifactId>
10+
<version>5.0.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<artifactId>alfresco-java-rest-api-spring-boot</artifactId>
14+
<name>Alfresco Java Rest API :: Spring Boot Autoconfigure</name>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.springframework.boot</groupId>
19+
<artifactId>spring-boot</artifactId>
20+
</dependency>
21+
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-autoconfigure</artifactId>
25+
</dependency>
26+
27+
<dependency>
28+
<groupId>org.springframework.boot</groupId>
29+
<artifactId>spring-boot-configuration-processor</artifactId>
30+
<optional>true</optional>
31+
</dependency>
32+
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-starter-test</artifactId>
36+
<scope>test</scope>
37+
</dependency>
38+
39+
</dependencies>
40+
41+
42+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.alfresco.rest.sdk.config;
2+
3+
import org.springframework.boot.context.properties.EnableConfigurationProperties;
4+
import org.springframework.context.annotation.Configuration;
5+
6+
@Configuration
7+
@EnableConfigurationProperties(AlfrescoRestApiProperties.class)
8+
public class AlfrescoRestApiAutoConfiguration {
9+
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package org.alfresco.rest.sdk.config;
2+
3+
import org.springframework.boot.context.properties.ConfigurationProperties;
4+
5+
@ConfigurationProperties(prefix = "alfresco.rest.api")
6+
public class AlfrescoRestApiProperties {
7+
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
2+
org.alfresco.rest.sdk.config.AlfrescoRestApiAutoConfiguration

alfresco-java-rest-api/pom.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.alfresco</groupId>
9+
<version>5.0.0-SNAPSHOT</version>
10+
<artifactId>alfresco-java-sdk</artifactId>
11+
</parent>
12+
13+
<artifactId>alfresco-java-rest-api</artifactId>
14+
<packaging>pom</packaging>
15+
<name>Alfresco Java Rest API :: Parent</name>
16+
17+
<modules>
18+
<module>alfresco-java-rest-api-lib</module>
19+
<module>alfresco-java-rest-api-spring-boot</module>
20+
<module>alfresco-java-rest-api-spring-boot-starter</module>
21+
</modules>
22+
23+
</project>

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
66
<groupId>org.springframework.boot</groupId>
@@ -49,9 +49,9 @@
4949
</developer>
5050
</developers>
5151
<modules>
52-
<module>alfresco-java-event-api</module>
53-
<!-- <module>alfresco-java-rest-api</module> -->
54-
<module>samples</module>
52+
<module>alfresco-java-event-api</module>
53+
<module>alfresco-java-rest-api</module>
54+
<module>samples</module>
5555
</modules>
5656
<scm>
5757
<url>http://github.com/${project.scm.organisation}/${project.scm.repository}</url>

0 commit comments

Comments
 (0)