Skip to content

Commit

Permalink
Remove Maven Central repository declaration
Browse files Browse the repository at this point in the history
Maven Central is available as a repository by default when using Maven, so it's not necessary to add it explicitly.
  • Loading branch information
breun committed Mar 20, 2024
1 parent ba8aaf7 commit 02a9d0c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 53 deletions.
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

0 comments on commit 02a9d0c

Please sign in to comment.