Asteroid mounted railguns (unmanned,) and on the moon, and on picket platforms. Massive kinetic projectiles moving at a significant fraction of c should be effective unless ftl or force fields are possible. 1000 years of collective effort to prepare could riff off of technology we've got at hand. Nuclear power and building material could be lifted from earth, but it'd be far more effective to mine asteroids.
Of course, if we mine asteroids, things on earth would be possible that are too expensive now, and we could see exponential technological progress.