Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve instructions for Maven users #2031

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,6 @@ Similar to our mascot, Exposed can be used to mimic a variety of database engine

Releases of Exposed are available in the Maven Central repository. You can declare this repository in your build script as follows:

#### Maven

```xml
<!-- Versions after 0.30.1 -->
<!-- Versions before 0.30.1 is unavailable for now-->
<repositories>
<repository>
<id>mavenCentral</id>
<name>mavenCentral</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
```

#### Gradle Groovy and Kotlin DSL

**Warning:** You might need to set your Kotlin JVM target to 8, and when using Spring to 17, in order for this to work properly:
Expand All @@ -59,6 +45,10 @@ repositories {
}
```

#### Maven

The Maven Central repository is enabled by default for Maven users.

### Exposed modules

`Exposed` consists of the following modules:
Expand Down
21 changes: 11 additions & 10 deletions documentation-website/Writerside/topics/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@
<tab title="Maven">
<code-block lang="xml">
<![CDATA[
<repositories>
<repository>
<id>mavenCentral</id>
<name>mavenCentral</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-bom</artifactId>
<version>0.48.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-core</artifactId>
<version>0.48.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-dao</artifactId>
<version>0.48.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-jdbc</artifactId>
<version>0.48.0</version>
</dependency>
</dependencies>
]]>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ To use them you have to add appropriate dependency into your repositories mappin
</code-block>
</tab>
<tab title="Maven">
<code-block lang="xml">
&lt;repositories&gt;
&lt;repository&gt;
&lt;id&gt;mavenCentral&lt;/id&gt;
&lt;name&gt;mavenCentral&lt;/name&gt;
&lt;url&gt;https://repo1.maven.org/maven2/&lt;/url&gt;
&lt;/repository&gt;
&lt;/repositories&gt;
</code-block>
The Maven Central repository is enabled by default for Maven users.
</tab>
<tab title="Groovy Gradle">
<code-block lang="groovy">
Expand Down
12 changes: 0 additions & 12 deletions exposed-bom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ Bill of Materials for all Exposed modules

# Maven
```xml
<!-- Versions after 0.33.1 -->
<repositories>
<repository>
<id>mavenCentral</id>
<name>mavenCentral</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>

<dependencyManagement>
<dependencies>
<dependency>
Expand All @@ -28,17 +19,14 @@ Bill of Materials for all Exposed modules
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-dao</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
<artifactId>exposed-jdbc</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
```
Expand Down
8 changes: 0 additions & 8 deletions exposed-spring-boot-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ This is a starter for [Spring Boot](https://spring.io/projects/spring-boot) to u
This starter will give you the latest version of [Exposed](https://github.com/JetBrains/Exposed) and its `spring-transaction` library along with the [Spring Boot Starter Data JDBC](https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jdbc).
### Maven
```mxml
<repositories>
<repository>
<id>mavenCentral</id>
<name>mavenCentral</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.jetbrains.exposed</groupId>
Expand Down