Commit ef6893b6 authored by Rem Collier's avatar Rem Collier

moved astra-base into astra-core

parent cfdb4aff
......@@ -43,12 +43,12 @@
<version>2.8.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
{
"java.configuration.updateBuildConfiguration": "automatic"
}
\ No newline at end of file
#astra-base
This is a parent POM that can subclassed to to create ASTRA projects.
To use this POM, create a child POM with the following code:
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>{group-id}</groupId>
<artifactId>{project-id}</artifactId>
<version>{version-num}</version>
<repositories>
<repository>
<id>astra-repo</id>
<url>https://gitlab.com/astra-language/astra-mvn-repo/raw/master</url>
</repository>
</repositories>
<parent>
<groupId>astra</groupId>
<artifactId>astra-base</artifactId>
<version>0.1.0</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>astra</groupId>
<artifactId>astra-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>astra</groupId>
<artifactId>astra-base</artifactId>
<version>0.2.0</version>
<packaging>pom</packaging>
<name>Basic ASTRA Project</name>
<url>http://astralanguage.com</url>
<parent>
<groupId>astra</groupId>
<artifactId>astra-project</artifactId>
<version>0.2.0</version>
</parent>
<properties>
<astra.main>Main</astra.main>
<astra.name>main</astra.name>
</properties>
<repositories>
<repository>
<id>astra-repo</id>
<url>https://gitlab.com/astra-language/astra-mvn-repo/raw/master</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>astra-repo</id>
<url>https://gitlab.com/astra-language/astra-mvn-repo/raw/master</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
<dependency>
<groupId>astra</groupId>
<artifactId>astra-interpreter</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>astra</groupId>
<artifactId>astra-apis</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>astra</groupId>
<artifactId>astra-compiler</artifactId>
<version>0.1.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
<!-- <dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.9.8</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.8</version>
</dependency> -->
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/astra</directory>
<includes>
<include>**/*.astra</include>
</includes>
</resource>
<resource>
<directory>src/test/astra</directory>
<includes>
<include>**/*.astra</include>
</includes>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.htm</include>
<include>**/*.html</include>
</includes>
</resource>
</resources>
<pluginManagement>
<plugins>
<plugin>
<groupId>astra</groupId>
<artifactId>astra-maven-plugin</artifactId>
<version>0.1.0</version>
<configuration>
<mainClass>${astra.main}</mainClass>
<mainName>${astra.name}</mainName>
</configuration>
<executions>
<execution>
<id>astra.compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>astra.test</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>astra.testrun</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<mainClass>${astra.main}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</build>
</project>
......@@ -38,14 +38,14 @@
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
pipeline {
agent { docker { image 'maven:3.3.3' } }
stages {
stage('build') {
steps {
sh 'mvn package'
}
}
}
}
\ No newline at end of file
......@@ -33,4 +33,15 @@
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -26,8 +26,8 @@
<scm>
<!-- Should be format scm:git:git or scm:git:https -->
<connection>scm:git:https://gitlab.com/astra-language/astra-interpreter.git</connection>
<developerConnection>scm:git:[email protected]:astra-language/astra-interpreter.git</developerConnection>
<connection>scm:git:https://gitlab.com/astra-language/astra-core.git</connection>
<developerConnection>scm:git:[email protected]:astra-language/astra-core.git</developerConnection>
<url>https://github.com/efenglu/maven</url>
<tag>HEAD</tag>
</scm>
......@@ -35,26 +35,26 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<astra.repo>../../astra-mvn-repo</astra.repo>
</properties>
<modules>
<module>astra-compiler</module>
<module>astra-interpreter</module>
<module>astra-apis</module>
<module>astra-base</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<configuration>
<altDeploymentRepository>internal.repo::default::file://${project.basedir}/../astra-mvn-repo</altDeploymentRepository>
</configuration>
</plugin>
</plugins>
</build>
</project>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment